From f4b26c42c84b7cb6561617ba0b771fc7bcc374ce Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 8 Jun 2021 21:00:07 +0200 Subject: [PATCH] postgres++ --- generic/postgres.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/generic/postgres.yaml b/generic/postgres.yaml index 5abdd16..d39c896 100644 --- a/generic/postgres.yaml +++ b/generic/postgres.yaml @@ -5,8 +5,6 @@ metadata: labels: app: postgres data: - POSTGRES_DB: postgresdb - POSTGRES_USER: postgresadmin POSTGRES_PASSWORD: cae8xohrai5I --- kind: PersistentVolumeClaim @@ -16,15 +14,20 @@ metadata: labels: app: postgres spec: + accessModes: + - ReadWriteOnce resources: requests: storage: 5Gi --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: postgres spec: + selector: + matchLabels: + app: postgres replicas: 1 template: metadata: @@ -40,7 +43,7 @@ spec: - configMapRef: name: postgres-config volumeMounts: - - mountPath: /var/lib/postgresql/data + - mountPath: /var/lib/postgresql name: postgresdb volumes: - name: postgresdb