From d71d353920ca48e8d5c68cce208c762a6822a5b9 Mon Sep 17 00:00:00 2001 From: Stephan Lamoureux Date: Sat, 10 Feb 2024 14:20:45 -0500 Subject: [PATCH] fixed configmap var --- k8s/twoge-configmap.yml | 3 ++- k8s/twoge-deployment.yml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/k8s/twoge-configmap.yml b/k8s/twoge-configmap.yml index 8c105cd..7a0a510 100644 --- a/k8s/twoge-configmap.yml +++ b/k8s/twoge-configmap.yml @@ -8,4 +8,5 @@ data: DB_USER: "twoge" DB_HOST: "twoge-db" DB_PORT: "5432" - DB_NAME: "twoge" \ No newline at end of file + DB_NAME: "twoge" + DB_TYPE: "postgresql" \ No newline at end of file diff --git a/k8s/twoge-deployment.yml b/k8s/twoge-deployment.yml index cb773e0..394cb4a 100644 --- a/k8s/twoge-deployment.yml +++ b/k8s/twoge-deployment.yml @@ -51,6 +51,11 @@ spec: configMapKeyRef: name: twoge-config-map key: DB_NAME + - name: DATABASE_TYPE + valueFrom: + configMapKeyRef: + name: twoge-config-map + key: DB_TYPE ports: - containerPort: 80 readinessProbe: # readiness Checks if the pod is ready to serve traffic.