infra/kubernetes/atuin/VaultStaticSecret-postgres-atuin.yaml
Gabriel Simmer 124b319b57
All checks were successful
Lint / lint (push) Successful in 37s
Pulling out more config, secrets
2024-07-07 00:33:53 +01:00

22 lines
515 B
YAML

apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultDynamicSecret
metadata:
name: postgres-atuin
namespace: atuin
spec:
allowStaticCreds: true
destination:
create: true
name: postgres-atuin
transformation:
templates:
ATUIN_DB_URI:
text: postgres://{{ .Secrets.username }}:{{ .Secrets.password }}@192.168.50.236/atuin
mount: database
path: static-creds/atuin
refreshAfter: 30s
vaultAuthRef: vault
rolloutRestartTargets:
- name: atuin
kind: Deployment