Skip to content

Commit

Permalink
Merge pull request #34 from bcgov/workflow-for-be
Browse files Browse the repository at this point in the history
added env variables in deployment config
  • Loading branch information
habibaz committed Dec 6, 2023
2 parents 78469b9 + cdfa0b1 commit b74eb04
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,32 @@ objects:
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
env:
- name: DB_HOST
valueFrom:
secretKeyRef:
name: patroni-ha-postgres-instance
key: db-hostname-dev
- name: DB_PORT
valueFrom:
secretKeyRef:
name: patroni-ha-postgres-instance
key: db-port-dev
- name: DB_NAME
valueFrom:
secretKeyRef:
name: patroni-ha-postgres-instance
key: db-name-dev
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: patroni-ha-postgres-instance
key: app-db-username-dev
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: patroni-ha-postgres-instance
key: app-db-password-dev
ports:
- containerPort: 3500
protocol: TCP
Expand Down

0 comments on commit b74eb04

Please sign in to comment.