airflow-kustom/components/airflow-cnpg-database/kustomization.yaml

37 lines
781 B
YAML
Raw Normal View History

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
secretgenerator:
2023-04-24 11:41:51 +02:00
- name: airflow-postgres-admin
type: secret
2023-04-24 11:41:51 +02:00
literals:
- username=postgres
- 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:
- 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