Switch services for postgres.

This commit is contained in:
Joseph Hanson 2024-04-15 12:29:47 -05:00
parent 340a61adc1
commit b72e331892
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 18 additions and 3 deletions

View file

@ -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

View file

@ -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