CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Container Immutability at Runtime

The image is a starting point, not a guarantee. This guide tampers with a normal container, then does the same thing to an immutable one, and is precise about what immutability does and does not stop.

Monitoring and Runtime Guide 34 of 40 Intermediate

Written against the versions above. `readOnlyRootFilesystem` is a container-level field and has been stable for years. Immutable Secrets and ConfigMaps have been GA since 1.21.

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. A container an attacker can modify

  2. The same container, made immutable

  3. What is still writable, and why that is the point

  4. The rest of the pattern

Official sources