Skip to content

Commit

Permalink
ctx/feat(sandbox): add chart for sandbox deps (#31)
Browse files Browse the repository at this point in the history
* ctx/feat(sandbox): add chart for sandbox deps

* enable, nodeports, etc
  • Loading branch information
ctxswitch authored Feb 28, 2025
1 parent 25eb32e commit 057891d
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 0 deletions.
Empty file added charts/sandbox/.helmignore
Empty file.
8 changes: 8 additions & 0 deletions charts/sandbox/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions charts/sandbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# sandbox
61 changes: 61 additions & 0 deletions charts/sandbox/templates/minio/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
32 changes: 32 additions & 0 deletions charts/sandbox/templates/minio/service.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 11 additions & 0 deletions charts/sandbox/values-dataplane.yaml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions charts/sandbox/values.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 057891d

Please sign in to comment.