feat(init): adding init image for auto creation of connections

This commit is contained in:
2023-05-10 16:20:58 +02:00
parent d84b111049
commit e21444bf46
4 changed files with 61 additions and 15 deletions

View File

@ -36,27 +36,25 @@ helmCharts:
value: "$(AIRFLOW_DATABASE_SERVICE_NAME)-rw"
- name: "DB_SERVICE_PORT"
value: "5432"
webserver:
defaultUser:
username: admin
password: NotSoSecret
extraInitContainers:
- name: airflow-create-connections
image: reg.cadoles.com/cadoles/airflow-init:latest
env:
- name: "DB_SERVICE_HOST"
value: "$(AIRFLOW_DATABASE_SERVICE_NAME)-rw"
- name: "DB_SERVICE_PORT"
value: "5432"
envFrom:
- configMapRef:
name: airflow-connections
- secretRef:
name: airflow-postgres-connection
workers:
replicas: 3
dags:
gitSync:
enabled: false
extraEnvFrom: |
- configMapRef:
name: '{{ .Release.Name }}-connections'
scheduler:
extraInitContainers:
- name: airflow-create-connections
image: reg.cadoles.com/cadoles/airflow:latest
args:
- bash
- -c
- |-
exec \
./scripts/create-connections.sh
- --