feat(init): adding init image for auto creation of connections
This commit is contained in:
@ -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
|
||||
- --
|
||||
|
Reference in New Issue
Block a user