Files
buun-stack/custom-example/cube/postgres-cube-external-secret.gomplate.yaml
2025-09-12 16:09:34 +09:00

22 lines
507 B
YAML

apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: postgres-cube-external-secret
namespace: {{ .Env.CUBE_NAMESPACE }}
spec:
refreshInterval: 1h
secretStoreRef:
name: vault-secret-store
kind: ClusterSecretStore
target:
name: postgres-cube-secret
creationPolicy: Owner
template:
type: Opaque
data:
password: "{{ `{{ .password }}` }}"
data:
- secretKey: password
remoteRef:
key: postgres/cube
property: password