89 lines
2.5 KiB
YAML
89 lines
2.5 KiB
YAML
{{- if .Values.services.objectStore.minio }}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: minio-service
|
|
name: minio-service
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: minio-service
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: minio-service
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- server
|
|
- /data
|
|
env:
|
|
- name: MINIO_BROWSER
|
|
value: {{ .Values.services.objectStore.browser | quote }}
|
|
- name: MINIO_ACCESS_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "budibase.fullname" . }}
|
|
key: objectStoreAccess
|
|
- name: MINIO_SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "budibase.fullname" . }}
|
|
key: objectStoreSecret
|
|
|
|
image: {{ .Values.globals.dockerRegistry }}minio/minio
|
|
imagePullPolicy: ""
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /minio/health/live
|
|
port: 9000
|
|
failureThreshold: 3
|
|
periodSeconds: 30
|
|
timeoutSeconds: 20
|
|
name: minio-service
|
|
ports:
|
|
- containerPort: {{ .Values.services.objectStore.port }}
|
|
{{ with .Values.services.objectStore.resources }}
|
|
resources:
|
|
{{- toYaml . | nindent 10 }}
|
|
{{ end }}
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: minio-data
|
|
{{ if .Values.services.objectStore.extraVolumeMounts }}
|
|
{{- toYaml .Values.services.objectStore.extraVolumeMounts | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.services.objectStore.extraContainers }}
|
|
{{- toYaml .Values.services.objectStore.extraContainers | nindent 6 }}
|
|
{{- end }}
|
|
{{- with .Values.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{ if .Values.schedulerName }}
|
|
schedulerName: {{ .Values.schedulerName | quote }}
|
|
{{ end }}
|
|
{{ if .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml .Values.imagePullSecrets | nindent 6 }}
|
|
{{ end }}
|
|
restartPolicy: Always
|
|
serviceAccountName: ""
|
|
volumes:
|
|
- name: minio-data
|
|
persistentVolumeClaim:
|
|
claimName: minio-data
|
|
{{ if .Values.services.objectStore.extraVolumes }}
|
|
{{- toYaml .Values.services.objectStore.extraVolumes | nindent 6 }}
|
|
{{- end }}
|
|
status: {}
|
|
{{- end }}
|