Files
homelab/infra/openclarity/templates/secret.yaml
2025-03-31 05:32:33 -05:00

35 lines
735 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: vault
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: openclarity-postgres-secret
spec:
secretStoreRef:
name: vault
kind: ClusterSecretStore
target:
name: openclarity-postgres-secret
data:
- secretKey: username
remoteRef:
key: kv/openclarity/postgres
property: username
- secretKey: postgres-password
remoteRef:
key: kv/openclarity/postgres
property: password
- secretKey: password
remoteRef:
key: kv/openclarity/postgres
property: password
- secretKey: database
remoteRef:
key: kv/openclarity/postgres
property: database