From 30821d8b4fc8b35eadc3831b6134063fe5cf2a52 Mon Sep 17 00:00:00 2001 From: Jad Baz Date: Thu, 28 May 2020 21:16:32 +0300 Subject: [PATCH 1/2] Added password to postgres db Fixes https://github.com/mmumshad/example-voting-app-kubernetes-v2/issues/1 --- postgres-deployment.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgres-deployment.yml b/postgres-deployment.yml index cd367fd..8c98430 100644 --- a/postgres-deployment.yml +++ b/postgres-deployment.yml @@ -21,5 +21,8 @@ spec: containers: - name: postgres image: postgres:9.4 + env: + - name: POSTGRES_PASSWORD + value: postgres ports: - - containerPort: 5432 \ No newline at end of file + - containerPort: 5432 From 681df73a8cd88a11b01cc643f67635284b03e361 Mon Sep 17 00:00:00 2001 From: Jad Baz Date: Thu, 28 May 2020 21:56:14 +0300 Subject: [PATCH 2/2] Added POSTGRES_USER --- postgres-deployment.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/postgres-deployment.yml b/postgres-deployment.yml index 8c98430..6d6e419 100644 --- a/postgres-deployment.yml +++ b/postgres-deployment.yml @@ -24,5 +24,7 @@ spec: env: - name: POSTGRES_PASSWORD value: postgres + - name: POSTGRES_USER + value: postgres ports: - containerPort: 5432