44 lines
872 B
YAML
44 lines
872 B
YAML
apiVersion: kustomize.config.k8s.io/v1alpha1
|
|
kind: Component
|
|
|
|
configurations:
|
|
- ./configurations/cnpg-cluster.yaml
|
|
|
|
resources:
|
|
- ./resources/hydra-cnpg-cluster.yaml
|
|
|
|
secretGenerator:
|
|
- name: hydra-postgres-admin
|
|
type: Secret
|
|
literals:
|
|
- username=postgres
|
|
- password=NotSoSecret
|
|
- name: hydra-postgres-user
|
|
type: Secret
|
|
literals:
|
|
- username=hydra
|
|
- password=NotSoSecret
|
|
|
|
|
|
vars:
|
|
- name: HYDRA_DATABASE_SERVICE_NAME
|
|
objref:
|
|
name: hydra-postgres
|
|
kind: Cluster
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
fieldref:
|
|
fieldpath: metadata.name
|
|
|
|
patchesJson6902:
|
|
- target:
|
|
group: apps
|
|
version: v1
|
|
kind: Deployment
|
|
name: hydra
|
|
path: patches/hydra-deployment.yaml
|
|
- target:
|
|
group: batch
|
|
version: v1
|
|
kind: Job
|
|
name: hydra-migrate
|
|
path: patches/hydra-migrate-job.yaml |