infra/kubernetes/atuin/VaultStaticSecret-postgres-atuin.yaml

22 lines
515 B
YAML
Raw Permalink Normal View History

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