2022-05-26 15:10:54 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-06-28 17:18:43 +00:00
|
|
|
name: console
|
|
|
|
labels: {{- include "minio-operator.labels" . | nindent 4 }}
|
2022-05-26 15:10:54 +00:00
|
|
|
spec:
|
|
|
|
replicas: {{ .Values.console.replicaCount }}
|
|
|
|
selector:
|
2023-06-28 17:18:43 +00:00
|
|
|
matchLabels: {{- include "minio-operator.console-selectorLabels" . | nindent 6 }}
|
2022-05-26 15:10:54 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
2023-06-28 17:18:43 +00:00
|
|
|
labels: {{- include "minio-operator.console-selectorLabels" . | nindent 8 }}
|
2022-05-26 15:10:54 +00:00
|
|
|
spec:
|
2023-06-28 17:18:43 +00:00
|
|
|
{{- with .Values.console.imagePullSecrets }}
|
|
|
|
imagePullSecrets: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.console.runtimeClassName }}
|
|
|
|
runtimeClassName: {{ . }}
|
2022-05-26 15:10:54 +00:00
|
|
|
{{- end }}
|
|
|
|
serviceAccountName: console-sa
|
|
|
|
{{- with .Values.console.securityContext }}
|
2023-06-28 17:18:43 +00:00
|
|
|
securityContext: {{- toYaml . | nindent 8 }}
|
2022-05-26 15:10:54 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.console.nodeSelector }}
|
2023-06-28 17:18:43 +00:00
|
|
|
nodeSelector: {{- toYaml . | nindent 8 }}
|
2022-05-26 15:10:54 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.console.affinity }}
|
2023-06-28 17:18:43 +00:00
|
|
|
affinity: {{- toYaml . | nindent 8 }}
|
2022-05-26 15:10:54 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.console.tolerations }}
|
2023-06-28 17:18:43 +00:00
|
|
|
tolerations: {{- toYaml . | nindent 8 }}
|
2022-05-26 15:10:54 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.console.topologySpreadConstraints }}
|
2023-06-28 17:18:43 +00:00
|
|
|
topologySpreadConstraints: {{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.console.initContainers }}
|
|
|
|
initContainers: {{- toYaml . | nindent 8 }}
|
2022-05-26 15:10:54 +00:00
|
|
|
{{- end }}
|
|
|
|
containers:
|
|
|
|
- name: {{ .Chart.Name }}
|
2023-08-07 20:20:03 +00:00
|
|
|
image: "{{ .Values.console.image.repository }}:{{ .Values.console.image.digest | default .Values.console.image.tag }}"
|
2023-06-28 17:18:43 +00:00
|
|
|
imagePullPolicy: {{ .Values.console.image.pullPolicy }}
|
2022-05-26 15:10:54 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 9090
|
|
|
|
name: http
|
|
|
|
- containerPort: 9443
|
|
|
|
name: https
|
|
|
|
args:
|
2023-03-28 14:02:53 +00:00
|
|
|
- ui
|
|
|
|
- --certs-dir=/tmp/certs
|
2023-08-07 20:20:03 +00:00
|
|
|
{{- with .Values.console.env }}
|
|
|
|
env: {{- toYaml . | nindent 12 }}
|
|
|
|
{{- end }}
|
2023-06-28 17:18:43 +00:00
|
|
|
resources: {{- toYaml .Values.console.resources | nindent 12 }}
|
2023-01-05 15:42:23 +00:00
|
|
|
{{- with .Values.console.containerSecurityContext }}
|
2023-06-28 17:18:43 +00:00
|
|
|
securityContext: {{- toYaml . | nindent 12 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.console.volumeMounts }}
|
|
|
|
volumeMounts: {{- toYaml . | nindent 12 }}
|
2023-01-05 15:42:23 +00:00
|
|
|
{{- end }}
|
2022-05-26 15:10:54 +00:00
|
|
|
{{- with .Values.console.volumes }}
|
2023-06-28 17:18:43 +00:00
|
|
|
volumes: {{- toYaml . | nindent 8 }}
|
2023-01-19 17:30:16 +00:00
|
|
|
{{- end }}
|