Update templates/deployment.yaml

This commit is contained in:
Loïc Kalbermatter 2024-06-10 09:48:57 +00:00
parent d42034c55f
commit 45e9865212

View File

@ -1,20 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: { { include "stalwart-mail.fullname" . } }
labels: { { - include "stalwart-mail.labels" . | nindent 4 } }
name: {{ include "stalwart-mail.fullname" . }}
labels: {{- include "stalwart-mail.labels" . | nindent 4 }}
spec:
replicas: { { .Values.replicaCount } }
replicas: {{ .Values.replicaCount }}
selector:
matchLabels: { { - include "stalwart-mail.selectorLabels" . | nindent 6 } }
matchLabels: {{- include "stalwart-mail.selectorLabels" . | nindent 6 }}
template:
metadata:
labels: { { - include "stalwart-mail.selectorLabels" . | nindent 8 } }
labels: {{- include "stalwart-mail.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: stalwart-mail
image: '{{ .Values.image.repository }}:{{ .Values.image.tag }}'
imagePullPolicy: { { .Values.image.pullPolicy } }
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 8080
- containerPort: 443
@ -26,8 +26,8 @@ spec:
- containerPort: 4190
volumeMounts:
- name: stalwart-volume
mountPath: { { .Values.persistence.mountPath } }
mountPath: {{ .Values.persistence.mountPath }}
volumes:
- name: stalwart-volume
persistentVolumeClaim:
claimName: { { .Values.persistence.existingClaim | default (include "stalwart-mail.fullname" .) } }
claimName: {{ .Values.persistence.existingClaim | default (include "stalwart-mail.fullname" .) }}