infra/kubernetes/irc/VaultStaticSecret-postgres-soju.yaml

19 lines
375 B
YAML
Raw 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-soju
2024-07-07 00:33:01 +01:00
namespace: soju
2024-07-06 00:48:36 +01:00
spec:
2024-07-07 00:33:01 +01:00
allowStaticCreds: true
2024-07-06 00:48:36 +01:00
destination:
create: true
name: postgres-soju
2024-07-07 00:33:01 +01:00
transformation:
mount: database
path: static-creds/soju
2024-07-06 00:48:36 +01:00
refreshAfter: 30s
vaultAuthRef: vault
2024-07-07 00:33:01 +01:00
rolloutRestartTargets:
- name: soju
kind: Deployment