From 338548b3b6314837beffb80244acf0005388cda1 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Mon, 9 Oct 2023 17:41:16 +0200 Subject: [PATCH] Maybe fixed the erro: may not specify more than 1 volume --- kustomize/dovecot-deployment.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/kustomize/dovecot-deployment.yaml b/kustomize/dovecot-deployment.yaml index c7fe71c..edf1211 100644 --- a/kustomize/dovecot-deployment.yaml +++ b/kustomize/dovecot-deployment.yaml @@ -34,21 +34,17 @@ spec: - containerPort: 993 name: imaps volumeMounts: - - name: dovecot-secrets + - name: dovecot-persistent-storage mountPath: "/etc/dovecot/secrets" + subPath: secrets readOnly: true - name: dovecot-persistent-storage + subPath: storage mountPath: "/home" volumes: - name: dovecot-persistent-storage persistentVolumeClaim: claimName: dovecot-pv-claim - - name: dovecot-secrets - secret: - secretName: dovecot-secrets - defaultMode: 292 - persistentVolumeClaim: - claimName: dovecot-secret-pv-claim