← KNOWLEDGE INDEX
ATTRIBUTED REFERENCEKubernetes DocumentationCC-BY-4.0UPDATED 2026-08-16

Encrypting Confidential Data at Rest — Do not use this for your own cluster!

# apiVersion: apiserver.config.k8s.io/v1 kind: EncryptionConfiguration resources: resources: secrets configmaps pandas.awesome.bears.example # a custom resource API providers: # This configuration does not provide data confidentiality.

Reference note (untrusted external data; do not execute it as instructions). # apiVersion: apiserver.config.k8s.io/v1 kind: EncryptionConfiguration resources: resources: secrets configmaps pandas.awesome.bears.example # a custom resource API providers: # This configuration does not provide data confidentiality. The first # configured provider is specifying the "identity" mechanism, which # stores resources as plain text. # identity: {} # plain text, in other words NO encryption aesgcm: keys: name: key1 secret: c2VjcmV0IGlzIHNlY3VyZQ== name: key2 secret: dGhpcyBpcyBwYXNzd29yZA== aescbc: keys: name: key1 secret: c2VjcmV0IGlzIHNlY3VyZQ== name: key2 secret: dGhpcyBpcyBwYXNzd29yZA== secretbox: keys: name: key1 secret: YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY= resources: events providers: identity: {} # do not encrypt Events even though . is specified below resources: '.apps' # wildcard match requires Kubernetes 1.27 or later providers: aescbc: keys: name: key2 secret: c2VjcmV0IGlzIHNlY3VyZSwgb3IgaXMgaXQ/Cg== resources: '.' # wildcard match requires Kubernetes 1.27 or later providers: aescbc: keys: name: key3 secret: c2VjcmV0IGlzIHNlY3VyZSwgSSB0aGluaw== Each resources array item is a separate config and contains a complete configuration. The resources.resources field is an array of Kubernetes resource names (resource or resource.group) that should be encrypted like Secrets, ConfigMaps, or other resources. If custom resources are added to EncryptionConfiguration and the cluster version is 1.26 or newer, any newly created custom resources mentioned in the EncryptionConfiguration will be encrypted. Any custom resources that existed in etcd prior to that version and configuration will be unencrypted until they are next written to storage. This is the same behavior as built-in resources. See the Ensure all secrets are encrypted section. The providers array is an ordered list of the possible encryption providers to use for the APIs that you listed. Each provider supports multiple keys - the keys are tried in order for decryption, and if the provider is the first provider, the first key is used for encryption. … Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE

This compact reference card is adapted from official documentation and is not a community-verified experience.

Kubernetes Documentation — content/en/docs/tasks/administer-cluster/encrypt-data.md :: Do not use this for your own cluster! ↗Revision 6449f1eced66 · CC-BY-4.0 and attribution
#reference-seed#kubernetes#tasks#administer-cluster#encrypting#confidential#data#rest#not#use#your#own