2023-04-24 11:41:51 +02:00
|
|
|
apiVersion: kustomize.config.k8s.io/v1alpha1
|
|
|
|
kind: Component
|
|
|
|
|
|
|
|
generatorOptions:
|
|
|
|
disableNameSuffixHash: true
|
|
|
|
|
|
|
|
configurations:
|
|
|
|
- ./configurations/cnpg-cluster.yaml
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- ./resources/airflow-cnpg-cluster.yaml
|
|
|
|
|
2023-04-24 11:53:28 +02:00
|
|
|
secretgenerator:
|
2023-04-24 11:41:51 +02:00
|
|
|
- name: airflow-postgres-admin
|
2023-04-24 11:53:28 +02:00
|
|
|
type: secret
|
2023-04-24 11:41:51 +02:00
|
|
|
literals:
|
|
|
|
- username=postgres
|
2023-04-24 11:53:28 +02:00
|
|
|
- password=notsosecret
|
2023-04-24 11:41:51 +02:00
|
|
|
- name: airflow-postgres-user
|
|
|
|
type: Secret
|
|
|
|
literals:
|
|
|
|
- username=airflow
|
|
|
|
- password=NotSoSecret
|
|
|
|
- name: airflow-postgres-connection
|
|
|
|
type: Secret
|
|
|
|
literals:
|
2023-04-24 12:14:06 +02:00
|
|
|
- connection=postgresql://airflow:NotSoSecret@${AIRFLOW_POSTGRES_RW_SERVICE_HOST}:5432/airflow
|
2023-04-24 11:41:51 +02:00
|
|
|
|
|
|
|
vars:
|
|
|
|
- name: AIRFLOW_DATABASE_SERVICE_NAME
|
|
|
|
objref:
|
|
|
|
name: airflow-postgres
|
|
|
|
kind: Cluster
|
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
fieldref:
|
|
|
|
fieldpath: metadata.name
|