Run vault agent init, but no side car

Hi there,
I could not find any documentation how to enable the init container only, but not have the side car running when using vault agent. The app does not support dynamic reloading of properties, so I would like to disable the side car and load secrets during startup only.

Hi @mirkop-mattr, I think the agent-pre-populate-only annotation is what you’re looking for: https://www.vaultproject.io/docs/platform/k8s/injector/annotations#vault-hashicorp-com-agent-pre-populate-only

1 Like

Ah yes thanks @tvoran. That is exactly what I was after.

1 Like