CKS labs by exam domain
The labs of the CKS training, sorted by domain of the CKS curriculum, with the weight of each domain in the exam.
1. Cluster setup (15%)
Network policies, CIS benchmark, Ingress with TLS, node metadata protection, binary verification.
- NetworkPolicy
- Hardening with CIS Benchmarks - Running kube-bench Jobs
- Hardening with CIS Benchmarks - Security Remediations
- Hardening with CIS Benchmarks - Automation and Continuous Compliance
- Ingress with TLS (
D_01_Ingressslides)
2. Cluster hardening (15%)
RBAC, service accounts, API access restriction, Kubernetes upgrades.
- Kubectl proxy and curl
- RBAC
- RBAC monitoring
- Bonus: Kubernetes Service Account Token Lab
- RBAC exercise 2, ClusterRole on PersistentVolumes (
E_02slides): solution - Upgrade a cluster with kubeadm (
E_01slides)
3. System hardening (10%)
Host OS footprint, least-privilege IAM, external network access, kernel hardening tools (AppArmor, seccomp).
4. Minimize microservice vulnerabilities (20%)
Pod Security Standards, secrets management, isolation techniques (multi-tenancy, sandboxed containers), pod-to-pod encryption (Cilium, Istio).
- Security context (
E_03slides) - Pod Security Admission (
E_03slides) - Encrypt Secrets at rest in etcd
- Bonus: Sandboxed containers with gVisor and RuntimeClass, also covers the binary verification with
sha512sum(CKSslides)
5. Supply chain security (20%)
Base image footprint, SBOM and artifact repositories, permitted registries, artifact signing and validation, static analysis (Kubesec, KubeLinter).
- Trivy: Container Vulnerability Scanning, including SBOM generation
- Cosign: Container Image Signing & Verification
- Bonus: Allowed registries with a ValidatingAdmissionPolicy
6. Monitoring, logging and runtime security (20%)
Behavioral analytics, threat detection and investigation, container immutability, Kubernetes audit logs.
Other labs of the training
Cluster internals
Bonus: quotas and LimitRanges
Not in the CKS curriculum, but they protect the cluster against a namespace which consumes all the resources (denial of service).
- ResourceQuotas and LimitRanges (
E_04slides): scripts