-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ctx/feat(sandbox): add chart for sandbox deps (#31)
* ctx/feat(sandbox): add chart for sandbox deps * enable, nodeports, etc
- Loading branch information
Showing
7 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# sandbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |