fix(db): adding new env variable
This commit is contained in:
parent
fb97a91e13
commit
eb5ff5a4c2
|
@ -24,7 +24,7 @@ secretgenerator:
|
||||||
- name: airflow-postgres-connection
|
- name: airflow-postgres-connection
|
||||||
type: Secret
|
type: Secret
|
||||||
literals:
|
literals:
|
||||||
- connection=postgresql://airflow:NotSoSecret@${AIRFLOW_POSTGRES_RW_SERVICE_HOST}:5432/airflow
|
- connection=postgresql://airflow:NotSoSecret@${DB_SERVICE_HOST}:${DB_SERVICE_PORT}/airflow
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
- name: AIRFLOW_DATABASE_SERVICE_NAME
|
- name: AIRFLOW_DATABASE_SERVICE_NAME
|
||||||
|
|
|
@ -7,22 +7,11 @@ generatorOptions:
|
||||||
components:
|
components:
|
||||||
- ./components/airflow-cnpg-database
|
- ./components/airflow-cnpg-database
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- ./resources/helm.yaml
|
||||||
|
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: airflow-webserver-secret-key
|
- name: airflow-webserver-secret-key
|
||||||
type: secret
|
type: secret
|
||||||
literals:
|
literals:
|
||||||
- webserver-secret-key=c94b62cffbf4dd1c42747fc65007054432f10c185c5e6160
|
- webserver-secret-key=c94b62cffbf4dd1c42747fc65007054432f10c185c5e6160
|
||||||
|
|
||||||
helmCharts:
|
|
||||||
- name: airflow
|
|
||||||
repo: https://airflow.apache.org
|
|
||||||
version: 1.9.0
|
|
||||||
releaseName: airflow
|
|
||||||
valuesInline:
|
|
||||||
postgresql:
|
|
||||||
enabled: false
|
|
||||||
pgbouncer:
|
|
||||||
enabled: true
|
|
||||||
data:
|
|
||||||
metadataSecretName: airflow-postgres-connection
|
|
||||||
webserverSecretKeySecretName: airflow-webserver-secret-key
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
helmCharts:
|
||||||
|
- name: airflow
|
||||||
|
repo: https://airflow.apache.org
|
||||||
|
version: 1.9.0
|
||||||
|
releaseName: airflow
|
||||||
|
valuesInline:
|
||||||
|
postgresql:
|
||||||
|
enabled: false
|
||||||
|
pgbouncer:
|
||||||
|
enabled: true
|
||||||
|
data:
|
||||||
|
metadataSecretName: airflow-postgres-connection
|
||||||
|
webserverSecretKeySecretName: airflow-webserver-secret-key
|
||||||
|
env:
|
||||||
|
- name: "DB_SERVICE_HOST"
|
||||||
|
value: "$(AIRFLOW_DATABASE_SERVICE_NAME)-rw"
|
||||||
|
- name: "DB_SERVICE_PORT"
|
||||||
|
value: "5432"
|
Loading…
Reference in New Issue