Update templates/deployment.yaml
This commit is contained in:
parent
e83b2d87f4
commit
d5f95c26d1
@ -1,20 +1,23 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: { { include "stalwart-mail.fullname" . } }
|
name: {{ include "stalwart-mail.fullname" . }}
|
||||||
labels: { { - include "stalwart-mail.labels" . | nindent 4 } }
|
labels:
|
||||||
|
{{- include "stalwart-mail.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
replicas: { { .Values.replicaCount } }
|
replicas: {{ .Values.replicaCount }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels: { { - include "stalwart-mail.selectorLabels" . | nindent 6 } }
|
matchLabels:
|
||||||
|
{{- include "stalwart-mail.selectorLabels" . | nindent 6 }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels: { { - include "stalwart-mail.selectorLabels" . | nindent 8 } }
|
labels:
|
||||||
|
{{- include "stalwart-mail.selectorLabels" . | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: stalwart-mail
|
- name: stalwart-mail
|
||||||
image: '{{ .Values.image.repository }}:{{ .Values.image.tag }}'
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: { { .Values.image.pullPolicy } }
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
- containerPort: 443
|
- containerPort: 443
|
||||||
@ -26,8 +29,8 @@ spec:
|
|||||||
- containerPort: 4190
|
- containerPort: 4190
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: stalwart-volume
|
- name: stalwart-volume
|
||||||
mountPath: { { .Values.persistence.mountPath } }
|
mountPath: {{ .Values.persistence.mountPath }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: stalwart-volume
|
- name: stalwart-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: { { include "stalwart-mail.fullname" . } }
|
claimName: {{ include "stalwart-mail.fullname" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user