Integrate a Kubernetes cluster with an existing Vault service.
Able to successfully, integrate and fetch secrets from external vault to pod.
When a secret is updated in vault, it is getting reflected in pod only after manual restart of pod.
Question:-
Is there any annotation to enable in pod template, so that injector should check secrets in external vault, let’s say for every 5min and if found changes, then update it in our pod without manual intervention ?
If not annotation, any other alternative which I can achieve automatically fetching secrets for certain period of time using sidecar pattern?
This task is blocker for other teams. Please do let me know, if this scenario is doable or need to stop here.
When using the Vault Agent injector, it should re-render templates that contain static secrets (e.g. from KV v2) every 5 minutes. Is that not happening? From 1.8, you can configure that period as well: Vault Agent Template Config | Vault by HashiCorp. For dynamic secrets, it will renew/re-render dynamically as the TTL gets near expiry.