First-Try
This commit is contained in:
parent
a5cecb385c
commit
f850a56562
|
@ -6,28 +6,28 @@ configurations:
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ./resources/hydra-cnpg-cluster.yaml
|
- ./resources/hydra-cnpg-cluster.yaml
|
||||||
|
- ./resources/hydra-postgres-pooler-rw.yaml
|
||||||
|
|
||||||
secretGenerator:
|
#secretGenerator:
|
||||||
- name: hydra-postgres-admin
|
#- name: hydra-postgres-admin
|
||||||
type: Secret
|
# type: Secret
|
||||||
literals:
|
# literals:
|
||||||
- username=postgres
|
# - username=postgres
|
||||||
- password=NotSoSecret
|
# - password=NotSoSecret
|
||||||
- name: hydra-postgres-user
|
#- name: hydra-postgres-user
|
||||||
type: Secret
|
# type: Secret
|
||||||
literals:
|
# literals:
|
||||||
- username=hydra
|
# - username=hydra
|
||||||
- password=NotSoSecret
|
# - password=NotSoSecret
|
||||||
|
|
||||||
|
#vars:
|
||||||
vars:
|
#- name: HYDRA_DATABASE_SERVICE_NAME
|
||||||
- name: HYDRA_DATABASE_SERVICE_NAME
|
# objref:
|
||||||
objref:
|
# name: hydra-postgres
|
||||||
name: hydra-postgres
|
# kind: Cluster
|
||||||
kind: Cluster
|
# apiVersion: postgresql.cnpg.io/v1
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
# fieldref:
|
||||||
fieldref:
|
# fieldpath: metadata.name
|
||||||
fieldpath: metadata.name
|
|
||||||
|
|
||||||
patches:
|
patches:
|
||||||
- target:
|
- target:
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
name: HYDRA_DATABASE_USER
|
name: HYDRA_DATABASE_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: hydra-postgres-user
|
name: hydra-postgres-app
|
||||||
key: username
|
key: username
|
||||||
- op: add
|
- op: add
|
||||||
path: "/spec/template/spec/containers/0/env/-"
|
path: "/spec/template/spec/containers/0/env/-"
|
||||||
|
@ -12,8 +12,16 @@
|
||||||
name: HYDRA_DATABASE_PASSWORD
|
name: HYDRA_DATABASE_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: hydra-postgres-user
|
name: hydra-postgres-app
|
||||||
key: password
|
key: password
|
||||||
|
- op: add
|
||||||
|
path: "/spec/template/spec/containers/0/env/-"
|
||||||
|
value:
|
||||||
|
name: HYDRA_DATABASE_SERVICE_NAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: hydra-postgres-app
|
||||||
|
key: host
|
||||||
- op: add
|
- op: add
|
||||||
path: "/spec/template/spec/containers/0/env/-"
|
path: "/spec/template/spec/containers/0/env/-"
|
||||||
value:
|
value:
|
||||||
|
|
|
@ -11,7 +11,7 @@ spec:
|
||||||
initdb:
|
initdb:
|
||||||
database: hydra
|
database: hydra
|
||||||
owner: hydra
|
owner: hydra
|
||||||
secret:
|
#secret:
|
||||||
name: hydra-postgres-user
|
# name: hydra-postgres-user
|
||||||
storage:
|
storage:
|
||||||
size: 2Gi
|
size: 2Gi
|
Loading…
Reference in New Issue