symfony-kube-skeletor/misc/k8s/kustomization/base/components/myapplication-cnpg/kustomization.yaml

33 lines
669 B
YAML
Raw Normal View History

apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
generatorOptions:
disableNameSuffixHash: true
configurations:
- ./configurations/cnpg-cluster.yaml
resources:
2023-06-19 14:28:01 +02:00
- ./resources/myapplication-cnpg-cluster.yaml
secretgenerator:
2023-06-19 14:28:01 +02:00
- name: myapplication-postgres-admin
type: secret
literals:
- username=postgres
- password=notsosecret
2023-06-19 14:28:01 +02:00
- name: myapplication-postgres-user
type: Secret
literals:
2023-06-19 14:28:01 +02:00
- username=myapplication
- password=NotSoSecretButThisIsBad
vars:
2023-06-19 14:28:01 +02:00
- name: myapplication_DATABASE_SERVICE_NAME
objref:
2023-06-19 14:28:01 +02:00
name: myapplication-postgres
kind: Cluster
apiVersion: postgresql.cnpg.io/v1
fieldref:
fieldpath: metadata.name