You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.8 KiB
61 lines
1.8 KiB
3 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: {{ include "mailproxy.fullname" . }}
|
||
|
labels:
|
||
|
{{- include "mailproxy.labels" . | nindent 4 }}
|
||
|
spec:
|
||
3 years ago
|
replicas: {{ .Values.mailauth.replicaCount }}
|
||
3 years ago
|
selector:
|
||
|
matchLabels:
|
||
|
{{- include "mailproxy.selectorLabels" . | nindent 6 }}
|
||
|
template:
|
||
|
metadata:
|
||
|
{{- with .Values.podAnnotations }}
|
||
|
annotations:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
{{- include "mailproxy.selectorLabels" . | nindent 8 }}
|
||
|
spec:
|
||
|
{{- with .Values.imagePullSecrets }}
|
||
|
imagePullSecrets:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
securityContext:
|
||
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||
|
containers:
|
||
|
- name: {{ .Chart.Name }}
|
||
|
securityContext:
|
||
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||
3 years ago
|
image: "{{ .Values.mailauth.image.repository }}:{{ .Values.mailauth.image.tag }}"
|
||
|
imagePullPolicy: {{ .Values.mailauth.image.pullPolicy }}
|
||
3 years ago
|
ports:
|
||
3 years ago
|
{{- range $i, $port := .Values.mailauth.service.ports }}
|
||
3 years ago
|
- name: {{ $port.name }}
|
||
|
containerPort: {{ $port.number }}
|
||
|
protocol: {{ $port.protocol }}
|
||
|
{{- end }}
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: http
|
||
|
readinessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: http
|
||
|
resources:
|
||
3 years ago
|
{{- toYaml .Values.mailauth.resources | nindent 12 }}
|
||
3 years ago
|
{{- with .Values.nodeSelector }}
|
||
|
nodeSelector:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.affinity }}
|
||
|
affinity:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.tolerations }}
|
||
|
tolerations:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|