33 lines
609 B
YAML
33 lines
609 B
YAML
|
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||
|
kind: Component
|
||
|
|
||
|
generatorOptions:
|
||
|
disableNameSuffixHash: true
|
||
|
|
||
|
configurations:
|
||
|
- ./configurations/cnpg-cluster.yaml
|
||
|
|
||
|
resources:
|
||
|
- ./resources/app-cnpg-cluster.yaml
|
||
|
|
||
|
secretgenerator:
|
||
|
- name: app-postgres-admin
|
||
|
type: secret
|
||
|
literals:
|
||
|
- username=postgres
|
||
|
- password=notsosecret
|
||
|
- name: app-postgres-user
|
||
|
type: Secret
|
||
|
literals:
|
||
|
- username=app
|
||
|
- password=NotSoSecretButThisIsBad
|
||
|
|
||
|
vars:
|
||
|
- name: APP_DATABASE_SERVICE_NAME
|
||
|
objref:
|
||
|
name: app-postgres
|
||
|
kind: Cluster
|
||
|
apiVersion: postgresql.cnpg.io/v1
|
||
|
fieldref:
|
||
|
fieldpath: metadata.name
|