hydra-sql/misc/k8s/kustomization/base/components/app-cnpg/kustomization.yaml
rudy 22231f791f
All checks were successful
Cadoles/hydra-sql/pipeline/pr-develop This commit looks good
issue-14: structure kubernetes
2023-06-15 15:38:14 +02:00

33 lines
639 B
YAML

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