The vault-kubernetes-authenticator is a small application/container that performs the HashiCorp Vaultkubernetes authentication process and places the Vault token in a well-known, configurable location. It is most commonly used as an init container to supply a Vault token to applications or services that are unaware of Vault.
Configuration
VAULT_ADDR - the address to the Vault server, including the protocol and port (like https://my.vault.server:8200). This defaults to https://127.0.0.1:8200 if unspecified.
VAULT_CAPEM - the raw PEM contents of the CA file to use for SSL verification.
VAULT_CACERT - the path on disk to a single CA file to use for TSL verification.
VAULT_CAPATH - the path on disk to a directory of CA files (non-recursive) to use for TLS verification.
VAULT_ROLE - Required the name of the Vault role to use for authentication.
VAULT_NAMESPACE - the Vault namespace, only available in Vault Enterprise
TOKEN_DEST_PATH - the destination path on disk to store the token. Usually this is a shared volume. Defaults to /var/run/secrets/vaultproject.io/.vault-token.
ACCESSOR_DEST_PATH - the destination path on disk to store the accessor. Usually this is a shared volume. Defaults to /var/run/secrets/vaultproject.io/.vault-accessor.
SERVICE_ACCOUNT_PATH - the path on disk where the kubernetes service account jtw token lives. This defaults to /var/run/secrets/kubernetes.io/serviceaccount/token.
VAULT_K8S_MOUNT_PATH - the name of the mount where the Kubernetes auth method is enabled. This defaults to kubernetes, but if you changed the mount path you will need to set this value to that path.