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-15 11:21:56 +02:00
|
|
|
- ./resources/MYAPPLICATION-cnpg-cluster.yaml
|
2023-06-13 15:44:55 +02:00
|
|
|
|
|
|
|
secretgenerator:
|
2023-06-15 11:21:56 +02:00
|
|
|
- name: MYAPPLICATION-postgres-admin
|
2023-06-13 15:44:55 +02:00
|
|
|
type: secret
|
|
|
|
literals:
|
|
|
|
- username=postgres
|
|
|
|
- password=notsosecret
|
2023-06-15 11:21:56 +02:00
|
|
|
- name: MYAPPLICATION-postgres-user
|
2023-06-13 15:44:55 +02:00
|
|
|
type: Secret
|
|
|
|
literals:
|
2023-06-15 11:21:56 +02:00
|
|
|
- username=MYAPPLICATION
|
2023-06-13 15:44:55 +02:00
|
|
|
- password=NotSoSecretButThisIsBad
|
|
|
|
|
|
|
|
vars:
|
2023-06-15 11:21:56 +02:00
|
|
|
- name: MYAPPLICATION_DATABASE_SERVICE_NAME
|
2023-06-13 15:44:55 +02:00
|
|
|
objref:
|
2023-06-15 11:21:56 +02:00
|
|
|
name: MYAPPLICATION-postgres
|
2023-06-13 15:44:55 +02:00
|
|
|
kind: Cluster
|
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
fieldref:
|
|
|
|
fieldpath: metadata.name
|