Skip to content

Commit

Permalink
added env variables in deployment config
Browse files Browse the repository at this point in the history
  • Loading branch information
Habiba Zaman committed Dec 6, 2023
1 parent b31d703 commit cdfa0b1
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,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 All @@ -153,7 +179,7 @@ objects:
spec:
host: "${NAME}-${ZONE}-${COMPONENT}.${DOMAIN}"
port:
targetPort: 3510-tcp
targetPort: 3500-tcp
to:
kind: Service
name: "${NAME}-${ZONE}-${COMPONENT}"
Expand Down

0 comments on commit cdfa0b1

Please sign in to comment.