2023-06-13 15:44:55 +02:00
|
|
|
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
|
2023-06-13 15:44:55 +02:00
|
|
|
|
|
|
|
secretgenerator:
|
2023-06-19 14:28:01 +02:00
|
|
|
- name: myapplication-postgres-admin
|
2023-06-13 15:44:55 +02:00
|
|
|
type: secret
|
|
|
|
literals:
|
|
|
|
- username=postgres
|
|
|
|
- password=notsosecret
|
2023-06-19 14:28:01 +02:00
|
|
|
- name: myapplication-postgres-user
|
2023-06-13 15:44:55 +02:00
|
|
|
type: Secret
|
|
|
|
literals:
|
2023-06-19 14:28:01 +02:00
|
|
|
- username=myapplication
|
2023-06-13 15:44:55 +02:00
|
|
|
- password=NotSoSecretButThisIsBad
|
|
|
|
|
|
|
|
vars:
|
2023-06-19 14:28:01 +02:00
|
|
|
- name: myapplication_DATABASE_SERVICE_NAME
|
2023-06-13 15:44:55 +02:00
|
|
|
objref:
|
2023-06-19 14:28:01 +02:00
|
|
|
name: myapplication-postgres
|
2023-06-13 15:44:55 +02:00
|
|
|
kind: Cluster
|
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
fieldref:
|
|
|
|
fieldpath: metadata.name
|