From 9dcb979ccef8f182c8e77870410fdac62a560bbe Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Mon, 9 Oct 2023 16:48:22 +0200 Subject: [PATCH] Added secret volume claim --- kustomize/dovecot-deployment.yaml | 2 +- kustomize/dovecot-secret-volume.yaml | 10 ++++++++++ kustomize/kustomization.yaml | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 kustomize/dovecot-secret-volume.yaml diff --git a/kustomize/dovecot-deployment.yaml b/kustomize/dovecot-deployment.yaml index 0895daa..c7fe71c 100644 --- a/kustomize/dovecot-deployment.yaml +++ b/kustomize/dovecot-deployment.yaml @@ -48,7 +48,7 @@ spec: secretName: dovecot-secrets defaultMode: 292 persistentVolumeClaim: - claimName: dovecot-pv-claim + claimName: dovecot-secret-pv-claim diff --git a/kustomize/dovecot-secret-volume.yaml b/kustomize/dovecot-secret-volume.yaml new file mode 100644 index 0000000..ce5ebff --- /dev/null +++ b/kustomize/dovecot-secret-volume.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: dovecot-secret-pv-claim +spec: + resources: + requests: + storage: 50Mi + accessModes: + - ReadOnlyMany diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index 9501a72..5e4899c 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -3,6 +3,7 @@ resources: - dovecot-deployment.yaml - dovecot-svc.yaml - dovecot-volume.yaml + - docevot-secret-volume.yaml - postfix-deployment.yaml - postfix-svc.yaml - roundcube-deployment.yaml