🐛 fix secrets

This commit is contained in:
auricom
2023-07-15 09:49:53 +02:00
parent bcc43905d5
commit 1c8e56ab67
2 changed files with 27 additions and 25 deletions

View File

@@ -3,28 +3,30 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: gatus
namespace: monitoring
name: gatus
namespace: monitoring
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: gatus-secret
creationPolicy: Owner
template:
data:
# App
CUSTOM_PUSHOVER_APP_TOKEN: '{{ .PUSHOVER_API_TOKEN }}'
CUSTOM_PUSHOVER_USER_KEY: '{{ .PUSHOVER_USER_KEY }}'
# Postgres Init
INIT_POSTGRES_DBNAME: gatus
INIT_POSTGRES_HOST: postgres-rw.default.svc.cluster.local
INIT_POSTGRES_USER: '{{ .POSTGRES_USER }}'
INIT_POSTGRES_PASS: '{{ .POSTGRES_PASS }}'
INIT_POSTGRES_SUPER_PASS: '{{ .POSTGRES_SUPER_PASS }}'
dataFrom:
- extract:
key: pushover
- extract:
key: gatus
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: gatus-secret
creationPolicy: Owner
template:
data:
# App
CUSTOM_PUSHOVER_APP_TOKEN: '{{ .PUSHOVER_API_TOKEN }}'
CUSTOM_PUSHOVER_USER_KEY: '{{ .PUSHOVER_USER_KEY }}'
# Postgres Init
INIT_POSTGRES_DBNAME: gatus
INIT_POSTGRES_HOST: postgres-rw.default.svc.cluster.local
INIT_POSTGRES_USER: '{{ .POSTGRES_USER }}'
INIT_POSTGRES_PASS: '{{ .POSTGRES_PASS }}'
INIT_POSTGRES_SUPER_PASS: '{{ .POSTGRES_SUPER_PASS }}'
dataFrom:
- extract:
key: cloudnative-pg
- extract:
key: pushover
- extract:
key: gatus