CKS training
Two-day training to prepare the Certified Kubernetes Security Specialist (CKS) exam.
Info
Holding the CKA certification is required to sit the CKS exam.
The slides and labs below are listed in the order of the training. The same labs, sorted by domain of the CKS curriculum: CKS labs by exam domain.
1. Cluster internals
Slides: E_01_advanced-k8s-cluster-internals.pdf
- Kubelet and static pods on Kubernetes
- Encrypt Secrets at rest in etcd
- etcd backup and restore (on OpenShift: etcd administration)
- Bonus, the cluster can be installed by the trainer: Kubernetes easy install with Kubeadm
- Upgrade a cluster with kubeadm
2. RBAC
Slides: E_02_advanced-k8s_RBAC.pdf
- Kubectl proxy and curl
- RBAC
- RBAC exercise 2, ClusterRole on PersistentVolumes: solution
- RBAC monitoring
- Bonus: Kubernetes Service Account Token Lab
3. Securing the nodes and the network
Slides: E_03_advanced-k8s_Security_node+network.pdf
4. Ingress
Slides: D_01_Ingress.pdf
5. Hardening, runtime security and supply chain
Slides: CKS.pdf
Cluster setup and hardening:
- Hardening with CIS Benchmarks - Running kube-bench Jobs
- Hardening with CIS Benchmarks - Security Remediations
- Bonus: Hardening with CIS Benchmarks - Automation and Continuous Compliance
Auditing, monitoring and logging:
System hardening:
- Seccomp Security Profiles
- Bonus: AppArmor Security Profiles
- Bonus: Sandboxed containers with gVisor and RuntimeClass, also covers the binary verification with
sha512sum
Supply chain security:
- Trivy: Container Vulnerability Scanning, including SBOM generation
- Cosign: Container Image Signing & Verification
- Bonus: Allowed registries with a ValidatingAdmissionPolicy
6. Bonus: computational resources
Not in the CKS curriculum, but quotas and LimitRanges protect the cluster against a namespace which consumes all the resources (denial of service).
Slides: E_04_advanced-k8s_computational_resources.pdf
- ResourceQuotas and LimitRanges: scripts
Exam preparation
All the pages of the Certifications section, including:
To practice on an environment close to the exam (kubeadm cluster, ssh to the nodes): the free CKS scenarios of Killercoda.