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.