In a hardened Kubernetes environment, you are using the Vault Agent injector. You want to make sure that the Vault-issued token is automatically renewed by the agent. Which annotation is required in the deployment manifest?
Trap 1: vault.hashicorp.com/auto-renew: 'true'
This is not a valid annotation.
Trap 2: vault.hashicorp.com/token-renewal: 'enabled'
This is not the correct annotation syntax.
Trap 3: vault.hashicorp.com/k8s-auth: 'true'
This enables auth but doesn't specifically trigger the agent process.
- A
vault.hashicorp.com/auto-renew: 'true'
Why wrong: This is not a valid annotation.
- B
vault.hashicorp.com/token-renewal: 'enabled'
Why wrong: This is not the correct annotation syntax.
- C
vault.hashicorp.com/k8s-auth: 'true'
Why wrong: This enables auth but doesn't specifically trigger the agent process.
- D
vault.hashicorp.com/agent-inject: 'true'
This triggers the agent injector to manage the token.