Files
erp/chart/templates/vaultdynamicsecret.yaml
2024-11-15 16:02:54 +01:00

25 lines
554 B
YAML

apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultDynamicSecret
metadata:
name: vso-db
namespace: {{ .Release.Namespace }}
spec:
# Mount path of the secrets backend
mount: postgres
# Path to the secret
path: creds/erp
# Where to store the secrets, VSO will create the secret
destination:
create: true
name: vso-db-credentials
# Restart these pods when secrets rotated
rolloutRestartTargets:
- kind: Deployment
name: {{ include "erp.fullname" . }}
# Name of the CRD to authenticate to Vault
vaultAuthRef: auth