Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Deployment and Operations
infra-azure-provisioning
Commits
31b2e0f0
Commit
31b2e0f0
authored
Mar 24, 2021
by
Vineeth Guna [Microsoft]
Browse files
Fixed errors with pgbouncer deployment and added it as pre install hook
parent
6e3f30da
Changes
2
Hide whitespace changes
Inline
Side-by-side
charts/airflow/helm-config.yaml
View file @
31b2e0f0
...
...
@@ -75,7 +75,7 @@ airflow:
enabled
:
false
externalDatabase
:
type
:
postgres
host
:
airflow-pgbouncer.osdu.svc.cluster.local
#<-- Azure PostgreSQL Database host or p
h
bouncer host (if pgbouncer is enabled)
host
:
airflow-pgbouncer.osdu.svc.cluster.local
#<-- Azure PostgreSQL Database host or p
g
bouncer 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"
...
...
charts/airflow/templates/pgbouncer/pgbouncer-deployment.yaml
View file @
31b2e0f0
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment