rancher-partner-charts/charts/minio/minio-operator/5.0.13/templates/console-deployment.yaml

67 lines
2.4 KiB
YAML

{{- if .Values.console.enabled }}
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.console.imagePullSecrets }}
imagePullSecrets: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.console.runtimeClassName }}
runtimeClassName: {{ . }}
{{- 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 }}
{{- with .Values.console.initContainers }}
initContainers: {{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.console.image.repository }}:{{ .Values.console.image.digest | default .Values.console.image.tag }}"
imagePullPolicy: {{ .Values.console.image.pullPolicy }}
ports:
- containerPort: 9090
name: http
- containerPort: 9443
name: https
args:
- ui
- --certs-dir=/tmp/certs
{{- with .Values.console.env }}
env: {{- toYaml . | nindent 12 }}
{{- end }}
resources: {{- toYaml .Values.console.resources | nindent 12 }}
{{- with .Values.console.containerSecurityContext }}
securityContext: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.console.volumeMounts }}
volumeMounts: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.console.volumes }}
volumes: {{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}