CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Managing Kubernetes Secrets

Encryption at rest protects the datastore. This guide is about everything above it: how a Secret is consumed, where it ends up, what immutability buys, and the Role that looks like it restricts access and does not.

Microservice Vulnerabilities Guide 21 of 40 Intermediate

Written against the versions above. Secret volumes are tmpfs on Linux nodes and mounted read-only when the Pod asks for it. `immutable: true` cannot be reversed - the Secret has to be replaced.

The cka6001 cluster: one control plane and 2 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA6001192.168.0.46Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA6001-NODE01192.168.0.47Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA6001-NODE02192.168.0.48Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. The same Secret, consumed two ways

  2. The parts that are not about mounting

  3. What the node sees

Official sources