Skip to content

Commit

Permalink
fixed configmap var
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlamoureux committed Feb 10, 2024
1 parent 565f117 commit d71d353
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion k8s/twoge-configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ data:
DB_USER: "twoge"
DB_HOST: "twoge-db"
DB_PORT: "5432"
DB_NAME: "twoge"
DB_NAME: "twoge"
DB_TYPE: "postgresql"
5 changes: 5 additions & 0 deletions k8s/twoge-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d71d353

Please sign in to comment.