1 {{- if eq .Values.mode "standalone" }}
2 apiVersion: apps/v1beta2
5 name: {{ template "minio.fullname" . }}
7 app: {{ template "minio.name" . }}
8 chart: {{ template "minio.chart" . }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
13 type: {{ .Values.DeploymentUpdate.type }}
15 maxSurge: {{ .Values.DeploymentUpdate.maxSurge }}
16 maxUnavailable: {{ .Values.DeploymentUpdate.maxUnavailable }}
17 {{- if .Values.nasgateway.enabled }}
18 replicas: {{ .Values.nasgateway.replicas }}
20 {{- if .Values.s3gateway.enabled }}
21 replicas: {{ .Values.s3gateway.replicas }}
23 {{- if .Values.azuregateway.enabled }}
24 replicas: {{ .Values.azuregateway.replicas }}
26 {{- if .Values.gcsgateway.enabled }}
27 replicas: {{ .Values.gcsgateway.replicas }}
29 {{- if .Values.ossgateway.enabled }}
30 replicas: {{ .Values.ossgateway.replicas }}
34 app: {{ template "minio.name" . }}
35 release: {{ .Release.Name }}
38 name: {{ template "minio.fullname" . }}
40 app: {{ template "minio.name" . }}
41 release: {{ .Release.Name }}
42 {{- if .Values.podAnnotations }}
44 {{ toYaml .Values.podAnnotations | indent 8 }}
47 {{- if .Values.priorityClassName }}
48 priorityClassName: "{{ .Values.priorityClassName }}"
51 - name: {{ .Chart.Name }}
52 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
53 imagePullPolicy: {{ .Values.image.pullPolicy }}
54 {{- if .Values.s3gateway.enabled }}
57 "/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway s3 {{ .Values.s3gateway.serviceEndpoint }}" ]
59 {{- if .Values.azuregateway.enabled }}
62 "/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway azure" ]
64 {{- if .Values.gcsgateway.enabled }}
67 "/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway gcs {{ .Values.gcsgateway.projectId }}" ]
69 {{- if .Values.ossgateway.enabled }}
72 "cp /tmp/config.json {{ .Values.configPath }} &&
73 /usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway oss {{ .Values.ossgateway.endpointURL }}" ]
75 {{- if .Values.nasgateway.enabled }}
78 "/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway nas {{ .Values.mountPath }}" ]
82 "/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} server {{ .Values.mountPath }}" ]
89 {{- if and .Values.persistence.enabled (not .Values.gcsgateway.enabled) (not .Values.azuregateway.enabled) (not .Values.s3gateway.enabled) }}
91 mountPath: {{ .Values.mountPath }}
92 {{- if .Values.persistence.subPath }}
93 subPath: "{{ .Values.persistence.subPath }}"
96 {{- if .Values.gcsgateway.enabled }}
98 mountPath: "/etc/credentials"
101 - name: minio-config-dir
102 mountPath: {{ .Values.configPath }}
103 {{- if .Values.tls.enabled }}
104 - name: cert-secret-volume
105 mountPath: {{ .Values.configPath }}certs
111 - name: MINIO_ACCESS_KEY
114 name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{ else }}{{ template "minio.fullname" . }}{{ end }}
116 - name: MINIO_SECRET_KEY
119 name: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{ else }}{{ template "minio.fullname" . }}{{ end }}
121 {{- if .Values.gcsgateway.enabled }}
122 - name: GOOGLE_APPLICATION_CREDENTIALS
123 value: "/etc/credentials/gcs_key.json"
125 {{- range $key, $val := .Values.environment }}
127 value: {{ $val | quote }}
131 path: /minio/health/live
133 {{- if .Values.tls.enabled }}
138 initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
139 periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
140 timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
141 successThreshold: {{ .Values.livenessProbe.successThreshold }}
142 failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
145 {{- if .Values.tls.enabled }}
148 path: /minio/health/ready
150 periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
151 timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
152 successThreshold: {{ .Values.readinessProbe.successThreshold }}
153 failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
155 {{ toYaml .Values.resources | indent 12 }}
156 {{- with .Values.nodeSelector }}
158 {{ toYaml . | indent 8 }}
160 {{- with .Values.affinity }}
162 {{ toYaml . | indent 8 }}
164 {{- with .Values.tolerations }}
166 {{ toYaml . | indent 8 }}
169 {{- if and (not .Values.gcsgateway.enabled) (not .Values.azuregateway.enabled) (not .Values.s3gateway.enabled) }}
171 {{- if .Values.persistence.enabled }}
172 persistentVolumeClaim:
173 claimName: {{ .Values.persistence.existingClaim | default (include "minio.fullname" .) }}
180 secretName: {{ if .Values.existingSecret }}{{ .Values.existingSecret }}{{ else }}{{ template "minio.fullname" . }}{{ end }}
181 - name: minio-config-dir
183 {{- if .Values.tls.enabled }}
184 - name: cert-secret-volume
186 secretName: {{ .Values.tls.certSecret }}
188 - key: {{ .Values.tls.publicCrt }}
190 - key: {{ .Values.tls.privateKey }}
192 - key: {{ .Values.tls.publicCrt }}