Skill · Kubernetes · Secure a Kubernetes cluster
Make the cluster reject what breaks a security rule
Make the cluster reject what breaks a rule: Pod Security Standards, ValidatingAdmissionPolicy in CEL, or a policy engine such as Kyverno or Gatekeeper.
Start lesson 1The Kubernetes domain
- 3 lessons
- ~3 h 10 of reading
- 5 quizzes
- 0 proof lab
Lessons
How to learn it
This skill is learned with the tool of your choice; your preferences decide the path followed in your journey. Each path lists its lessons in program order.
With ValidatingAdmissionPolicy
3 lessons · ~3 h 10 default
Part 1 · Confine and admit Pods 1 lesson · ~1 h 00
Part 2 · Runtime security 1 lesson · ~55 min
Part 3 · Confine and admit Pods 1 lesson · ~1 h 15
With Kyverno
3 lessons · ~2 h 25
Part 1 · Confine and admit Pods 1 lesson · ~1 h 00
Part 2 · Runtime security 1 lesson · ~55 min
Part 3 · Controlled deployment 1 lesson · ~30 min
With Gatekeeper
3 lessons · ~3 h 20
Part 1 · Confine and admit Pods 1 lesson · ~1 h 00
Part 2 · Runtime security 1 lesson · ~55 min
Part 3 · Confine and admit Pods 1 lesson · ~1 h 25
Beyond the lessons
Assess, practise, pass the proof
Reading a lesson confirms nothing. A skill is confirmed by a passed quiz, practised in a guided lab, and put to the test by a challenge or a mission; an imported lab result is not verified by the site.
Assess yourself
5 quizzes
At the end of the lessons: passed at 70%, they confirm the skill.
Practice
5 guided labs
- Reject a privileged Pod at admission, with Pod Security Admission
- Take over a privileged Pod in production, without stopping its work
- Have the cluster itself reject an unpinned image, with no webhook
- Install Gatekeeper, enforce a rule and read its audit
- Unblock a namespace, then validate and modify at admission without a webhook
Proof
No proof
A practical proof is a challenge, a capstone or a declared lab.
Used by the missions “Refuse the unknown and contain the runtime”, “Open an isolated space for a team on a shared cluster”, which have their proof.
Placement test
Preparing the questions…
Your answers in detail
For each question asked: your answer, the correct answer, its explanation and the page to reread.
Around it
Who requires it, who teaches it
Required by
- DevSecOps Engineer
- Platform Engineer
- CKAD
- CKS
- KCSA
In red: the certification it prepares for.
Taught by
Tool of your choice: ValidatingAdmissionPolicy or Kyverno or Gatekeeper.
Same block · Secure a Kubernetes cluster
- Harden a Pod's execution context (securityContext)
- Give a workload a minimal identity (ServiceAccount)
- Authorize access to the Kubernetes API with RBAC
- Confine a container against the host kernel (seccomp, AppArmor)
- Isolate a Pod in a sandboxed runtime (RuntimeClass)
- Harden a cluster's components with the CIS Benchmark
- Trace who acted on the API with the Kubernetes audit log
- Encrypt and authenticate traffic between Pods