77 lines
2.3 KiB
YAML
77 lines
2.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: "console"
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "minio-operator.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: {{ .Values.console.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "minio-operator.console-selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "minio-operator.console-selectorLabels" . | nindent 8 }}
|
|
spec:
|
|
{{- with .Values.operator.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: console-sa
|
|
{{- with .Values.console.securityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.console.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.console.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.console.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.console.topologySpreadConstraints }}
|
|
topologySpreadConstraints:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
image: "{{ .Values.console.image.repository }}:{{ .Values.console.image.tag }}"
|
|
imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
|
|
ports:
|
|
- containerPort: 9090
|
|
name: http
|
|
- containerPort: 9443
|
|
name: https
|
|
args:
|
|
- ui
|
|
- --certs-dir=/tmp/certs
|
|
resources:
|
|
{{- toYaml .Values.console.resources | nindent 12 }}
|
|
volumeMounts:
|
|
{{- with .Values.console.volumeMounts }}
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
securityContext:
|
|
{{- with .Values.console.containerSecurityContext }}
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
volumes:
|
|
{{- with .Values.console.volumes }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.console.initContainers }}
|
|
initContainers:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.operator.runtimeClassName }}
|
|
runtimeClassName:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end}}
|