diff --git a/charts/sandbox/.helmignore b/charts/sandbox/.helmignore new file mode 100644 index 0000000..e69de29 diff --git a/charts/sandbox/Chart.yaml b/charts/sandbox/Chart.yaml new file mode 100644 index 0000000..35fe2e6 --- /dev/null +++ b/charts/sandbox/Chart.yaml @@ -0,0 +1,8 @@ +apiVersion: v2 +name: sandbox +description: Deploys extras for sandbox testing. +type: application +icon: "https://i.ibb.co/JxfDQsL/Union-Symbol-yellow-2.png" +version: 2025.2.0 +appVersion: 2025.2.0 +kubeVersion: ">= 1.28.0" diff --git a/charts/sandbox/README.md b/charts/sandbox/README.md new file mode 100644 index 0000000..bcf5263 --- /dev/null +++ b/charts/sandbox/README.md @@ -0,0 +1 @@ +# sandbox diff --git a/charts/sandbox/templates/minio/deployment.yaml b/charts/sandbox/templates/minio/deployment.yaml new file mode 100644 index 0000000..df11cc6 --- /dev/null +++ b/charts/sandbox/templates/minio/deployment.yaml @@ -0,0 +1,61 @@ +{{- if .Values.minio.enabled }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: minio + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: minio + app.kubernetes.io/instance: union-sandbox +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: minio + app.kubernetes.io/instance: union-sandbox + template: + metadata: + labels: + app.kubernetes.io/name: minio + app.kubernetes.io/instance: union-sandbox + spec: + containers: + - image: {{ .Values.minio.image }} + imagePullPolicy: {{ .Values.minio.imagePullPolicy }} + name: minio + command: + - /bin/bash + - -c + args: + - minio server /data --console-address :9001 + env: + - name: MINIO_ACCESS_KEY + value: {{ .Values.minio.accessKey }} + - name: MINIO_SECRET_KEY + value: {{ .Values.minio.secretKey }} + - name: MINIO_DEFAULT_BUCKETS + value: {{ .Values.minio.defaultBucket }} + ports: + - containerPort: 9000 + name: minio + - containerPort: 9001 + name: minio-console + {{- with .Values.minio.resources }} + resources: {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.minio.volumeMounts }} + volumeMounts: {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.minio.volumes }} + volumes: {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.minio.nodeSelector }} + nodeSelector: {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.minio.affinity }} + affinity: {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.minio.tolerations }} + tolerations: {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} diff --git a/charts/sandbox/templates/minio/service.yaml b/charts/sandbox/templates/minio/service.yaml new file mode 100644 index 0000000..878b080 --- /dev/null +++ b/charts/sandbox/templates/minio/service.yaml @@ -0,0 +1,32 @@ +{{- if .Values.minio.enabled }} +apiVersion: v1 +kind: Service +metadata: + name: minio + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: minio + app.kubernetes.io/instance: sandbox +spec: + {{- with .Values.minio.service.type}} + type: {{ . }} + {{- end }} + ports: + - name: minio + port: 9000 + protocol: TCP + targetPort: minio + {{- if eq .Values.minio.service.type "NodePort" }} + nodePort: {{ .Values.minio.service.ports.minio.nodePort | int }} + {{- end }} + - name: minio-console + port: 9001 + protocol: TCP + targetPort: minio-console + {{- if eq .Values.minio.service.type "NodePort" }} + nodePort: {{ .Values.minio.service.ports.console.nodePort | int }} + {{- end }} + selector: + app.kubernetes.io/name: minio + app.kubernetes.io/instance: union-sandbox + {{- end }} diff --git a/charts/sandbox/values-dataplane.yaml b/charts/sandbox/values-dataplane.yaml new file mode 100644 index 0000000..7d852e5 --- /dev/null +++ b/charts/sandbox/values-dataplane.yaml @@ -0,0 +1,11 @@ +# Values to inject into your dataplane helm deployment to utilize the defaulted +# sandbox applications and services. +storage: + endpoint: "http://minio.union.svc.cluster.local" + bucketName: union-dp-bucket + accessKey: "minio" + secretKey: "miniostorage" + region: "us-east-1" + fastRegistrationBucketName: union-dp-bucket + # This assumes that port-forwarding is active or the port is exposed to the host. + fastRegistrationURL: http://localhost:9000 diff --git a/charts/sandbox/values.yaml b/charts/sandbox/values.yaml new file mode 100644 index 0000000..6fb6213 --- /dev/null +++ b/charts/sandbox/values.yaml @@ -0,0 +1,27 @@ +minio: + enabled: true + image: "quay.io/minio/minio:RELEASE.2025-01-20T14-49-07Z" + imagePullPolicy: "IfNotPresent" + resources: + limits: + cpu: 200m + memory: 512Mi + requests: + cpu: 10m + memory: 128Mi + accessKey: minio + secretKey: miniostorage + defaultBucket: union-dp-bucket + volumes: + - name: minio-storage + emptyDir: { } + volumeMounts: + - name: minio-storage + mountPath: /data + service: + type: ClusterIP + ports: + minio: + nodePort: 30800 + console: + nodePort: 30801