From 9bff03971c5d3b40bd025c08043591ed93b8ddfb Mon Sep 17 00:00:00 2001 From: GTPE Student Date: Wed, 26 May 2021 16:02:40 +0000 Subject: [PATCH] update postgres pvc and deployment --- resources/etherpad/postgres_deployment.yaml | 4 ++-- resources/etherpad/postgres_pvc.yaml | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 resources/etherpad/postgres_pvc.yaml diff --git a/resources/etherpad/postgres_deployment.yaml b/resources/etherpad/postgres_deployment.yaml index 2004aff..df457ac 100644 --- a/resources/etherpad/postgres_deployment.yaml +++ b/resources/etherpad/postgres_deployment.yaml @@ -65,5 +65,5 @@ spec: restartPolicy: Always volumes: - name: postgresql-data - emptyDir: - medium: "" \ No newline at end of file + persistentVolumeClaim: + claimName: postgresql diff --git a/resources/etherpad/postgres_pvc.yaml b/resources/etherpad/postgres_pvc.yaml new file mode 100644 index 0000000..2362c03 --- /dev/null +++ b/resources/etherpad/postgres_pvc.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + template: postgresql-persistent-template + name: postgresql +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi +