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 +