Switch services for postgres.
This commit is contained in:
parent
340a61adc1
commit
b72e331892
2 changed files with 18 additions and 3 deletions
|
@ -49,10 +49,25 @@ spec:
|
||||||
name: postgres-pguser-gatus
|
name: postgres-pguser-gatus
|
||||||
data:
|
data:
|
||||||
- match:
|
- match:
|
||||||
secretKey: uri
|
secretKey: dbname
|
||||||
remoteRef:
|
remoteRef:
|
||||||
remoteKey: gatus
|
remoteKey: gatus
|
||||||
property: DATABASE_URI
|
property: pg_database
|
||||||
|
- match:
|
||||||
|
secretKey: port
|
||||||
|
remoteRef:
|
||||||
|
remoteKey: gatus
|
||||||
|
property: pg_port
|
||||||
|
- match:
|
||||||
|
secretKey: user
|
||||||
|
remoteRef:
|
||||||
|
remoteKey: gatus
|
||||||
|
property: pg_username
|
||||||
|
- match:
|
||||||
|
secretKey: password
|
||||||
|
remoteRef:
|
||||||
|
remoteKey: gatus
|
||||||
|
property: pg_password
|
||||||
---
|
---
|
||||||
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/pushsecret_v1alpha1.json
|
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/pushsecret_v1alpha1.json
|
||||||
apiVersion: external-secrets.io/v1alpha1
|
apiVersion: external-secrets.io/v1alpha1
|
||||||
|
|
|
@ -15,7 +15,7 @@ spec:
|
||||||
data:
|
data:
|
||||||
CUSTOM_PUSHOVER_TOKEN: "{{ .gatus_token }}"
|
CUSTOM_PUSHOVER_TOKEN: "{{ .gatus_token }}"
|
||||||
CUSTOM_PUSHOVER_USER_KEY: "{{ .userkey_jahanson }}"
|
CUSTOM_PUSHOVER_USER_KEY: "{{ .userkey_jahanson }}"
|
||||||
DATABASE_URI: "{{ .DATABASE_URI }}"
|
DATABASE_URI: "postgresql://{{ .pg_username }}:{{ .pg_password }}@postgres-primary-real.database.svc:{{ .pg_port }}/{{ .pg_database }}"
|
||||||
dataFrom:
|
dataFrom:
|
||||||
- extract:
|
- extract:
|
||||||
key: pushover
|
key: pushover
|
||||||
|
|
Loading…
Reference in a new issue