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
|
||||
data:
|
||||
- match:
|
||||
secretKey: uri
|
||||
secretKey: dbname
|
||||
remoteRef:
|
||||
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
|
||||
apiVersion: external-secrets.io/v1alpha1
|
||||
|
|
|
@ -15,7 +15,7 @@ spec:
|
|||
data:
|
||||
CUSTOM_PUSHOVER_TOKEN: "{{ .gatus_token }}"
|
||||
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:
|
||||
- extract:
|
||||
key: pushover
|
||||
|
|
Loading…
Reference in a new issue