2023-04-24 11:41:51 +02:00
|
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
|
|
kind: Kustomization
|
|
|
|
|
|
|
|
generatorOptions:
|
|
|
|
disableNameSuffixHash: true
|
|
|
|
|
|
|
|
components:
|
|
|
|
- ./components/airflow-cnpg-database
|
|
|
|
|
|
|
|
secretGenerator:
|
|
|
|
- name: airflow-webserver-secret-key
|
|
|
|
type: secret
|
|
|
|
literals:
|
|
|
|
- webserver-secret-key=c94b62cffbf4dd1c42747fc65007054432f10c185c5e6160
|
2023-04-24 14:05:51 +02:00
|
|
|
|
2023-05-04 17:06:19 +02:00
|
|
|
configMapGenerator:
|
|
|
|
- name: 'airflow-connections'
|
|
|
|
literals:
|
|
|
|
- AIRFLOW_CONN_TEST="test://test.do.not.use"
|
|
|
|
|
2023-04-24 14:05:51 +02:00
|
|
|
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"
|
2023-05-04 17:06:19 +02:00
|
|
|
|
2023-04-24 14:26:32 +02:00
|
|
|
webserver:
|
|
|
|
defaultUser:
|
|
|
|
username: admin
|
|
|
|
password: NotSoSecret
|
2023-04-24 16:15:03 +02:00
|
|
|
workers:
|
|
|
|
replicas: 3
|
|
|
|
dags:
|
|
|
|
gitSync:
|
|
|
|
enabled: false
|
2023-05-04 17:06:19 +02:00
|
|
|
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
|
|
|
|
- --
|