Commit 31b2e0f0 authored by Vineeth Guna [Microsoft]'s avatar Vineeth Guna [Microsoft]
Browse files

Fixed errors with pgbouncer deployment and added it as pre install hook

parent 6e3f30da
......@@ -75,7 +75,7 @@ airflow:
enabled: false
externalDatabase:
type: postgres
host: airflow-pgbouncer.osdu.svc.cluster.local #<-- Azure PostgreSQL Database host or phbouncer host (if pgbouncer is enabled)
host: airflow-pgbouncer.osdu.svc.cluster.local #<-- Azure PostgreSQL Database host or pgbouncer host (if pgbouncer is enabled)
user: osdu_admin@#{base-name-sr}#-pg #<-- Azure PostgreSQL Database username, formatted as {username}@{hostname}
passwordSecret: "postgres"
passwordSecretKey: "postgres-password"
......
......@@ -7,6 +7,9 @@ metadata:
tier: airflow
component: pgbouncer
release: {{ .Release.Name }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-5"
spec:
replicas: 1
strategy:
......@@ -53,7 +56,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ .Values.pgbouncer.airflowdb.passwordSecret }}
key: {{ .Values.pgbouncer.airflowdb.user.passwordSecretKey }}
key: {{ .Values.pgbouncer.airflowdb.passwordSecretKey }}
volumeMounts:
- name: pgbouncer-config
subPath: pgbouncer.ini
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment