Free module
Container and Kubernetes security
Harden your own Kubernetes cluster: small images, safe pod defaults, least-privilege RBAC, Pod Security, network policies and audit logs, in k3s.
The lessons
Each lesson is free and interactive. Press Start lab to run its commands in a live lab and to sit its quizzes and tasks, with no account needed.
1 · Virtual machine lab
Hardening a container image
I can build a container image that runs as a normal user and holds no secrets.
Read the lesson2 · Virtual machine lab
Safe runtime defaults for a pod
I can run a pod with a read-only root, no capabilities and a seccomp filter.
Read the lesson3 · Virtual machine lab
Least privilege with Kubernetes RBAC
I can find an over-broad RoleBinding and narrow it to what the job needs.
Read the lesson4 · Virtual machine lab
Pod Security Admission at restricted
I can make a namespace refuse pods that break the restricted standard.
Read the lesson5 · Virtual machine lab
Default-deny network policies
I can add default-deny network policies and prove that traffic stops.
Read the lesson6 · Virtual machine lab
Detecting misuse from the audit log
I can detect misuse of a cluster from its API server audit log.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.