11d779154d
* docs: add persistent cache * Clarify documentation * Update website/content/docs/agent/caching/index.mdx Co-authored-by: Theron Voran <tvoran@users.noreply.github.com> * Update website/content/docs/agent/caching/persistent-caches/kubernetes.mdx Co-authored-by: Theron Voran <tvoran@users.noreply.github.com> * Update index.mdx * Update website/content/docs/agent/caching/index.mdx Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com> * Update website/content/docs/agent/caching/index.mdx Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com> * Update index.mdx * Update kubernetes.mdx * Resolve conflicts Co-authored-by: Theron Voran <tvoran@users.noreply.github.com> Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: Kubernetes - Vault Agent Persistent Cache
|
|
description: Kubernetes Persistent Cache for Vault Agent Caching
|
|
---
|
|
|
|
# Vault Agent Kubernetes Persistent Cache
|
|
|
|
When `kubernetes` is configured for the persistent cache type, Vault Agent will optimize the
|
|
persistent cache specifically for Kubernetes. This type of persistent cache requires a Kubernetes
|
|
service account token. The service account token is used during encryption and decryption of the
|
|
persistent cache as an additional integrity check.
|
|
|
|
The Vault Agent persistent cache file in Kubernetes should only be used for handing off Vault tokens
|
|
and leases between initialization and sidecar Vault Agent containers. This cache file should be shared
|
|
using a memory volume between the Vault Agent containers.
|
|
|
|
If the Vault Agent Injector for Kubernetes is being used, the persistent cache is automatically configured
|
|
and used if the annotation [`vault.hashicorp.com/agent-cache-enable: true`](/docs/platform/k8s/injector/annotations#vault-hashicorp-com-agent-cache-enable) is set.
|
|
|
|
## Configuration
|
|
|
|
- `service_account_token_file` `(string: optional)` - When type is set to `kubernetes`,
|
|
this configures the path on disk where the Kubernetes service account token can be found.
|
|
Defaults to `/var/run/secrets/kubernetes.io/serviceaccount/token`.
|