Kubernetes Tutorial: 27 Free Hands-On Labs
Kubernetes has 27 free hands-on labs on this site: 1 beginner, 16 intermediate and 10 advanced. The most common subjects are Kubernetes security (11), Kubernetes (6) and Policy as code (2), and the labs have you practise things like proving a Kubernetes Secret is base64, not encrypted. A typical lab takes about 60 minutes, and the list starts with the easiest, Audit Kubernetes RBAC for risky permissions with rbac-tool. They sit mostly in Cloud Security.
First 24 of 27 labs, easiest first
- Install kubectl and kind, and bring up a local Kubernetes cluster you can break
- Audit Kubernetes RBAC for risky permissions with rbac-tool
- Continuously scan a running Kubernetes cluster with Trivy Operator
- Default-deny east-west traffic in Kubernetes with NetworkPolicy
- Enable Kubernetes audit logging and hunt in it
- Encrypt Kubernetes Secrets at rest, part 1: prove the leak and close it
- Enforce Kubernetes Pod Security Standards with the built-in Pod Security Admission
- Harden a Kubernetes cluster against the CIS Benchmark with kube-bench
- Limit the blast radius of a runaway pod with ResourceQuotas and LimitRanges
- Lock down a Kubernetes cluster with RBAC: give a workload exactly the permissions it needs
- Protect node metadata and the kubelet endpoint: an egress deny you can prove and kubelet auth checks
- Safely store Kubernetes secrets in Git with Sealed Secrets
- Score your Kubernetes cluster against NSA-CISA hardening with Kubescape
- Secure Kubernetes pods with a securityContext
- Secure the cluster front door: an Ingress with TLS and no anonymous access to the API server
- See every pod-to-pod flow with Cilium Hubble (and catch a connection that shouldn't exist)
- Upgrade a kind cluster by one minor version and prove it with a before and after scan
- Build a Kubernetes validating admission webhook from scratch (and fail closed)
- Detect Kubernetes control-plane threats from the audit log with Falco
- Encrypt Kubernetes Secrets at rest, part 2: rotate the key and catch the silent failures
- Encrypt Kubernetes Secrets at rest, part 3: move to a KMS provider (envelope encryption)
- Encrypt pod-to-pod traffic with Cilium WireGuard and prove it in a packet capture
- Enforce Kubernetes policy at admission with Kyverno: make the API server itself refuse the bad Pod
- Enforce Kubernetes policy at admission with OPA Gatekeeper
Slide deck
Cheat sheets
Tool documentation
Career roles
Certifications
Interview preparation
Lab catalog
Related topics
- Free Cloud Security Labs (147 hands-on) | Lion Cipher
- Free Foundations Labs (126 hands-on) | Lion Cipher
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
Related
- Install kubectl and kind, and bring up a local Kubernetes cluster you can break
- Audit Kubernetes RBAC for risky permissions with rbac-tool
- Continuously scan a running Kubernetes cluster with Trivy Operator
- Default-deny east-west traffic in Kubernetes with NetworkPolicy
- Enable Kubernetes audit logging and hunt in it
- Encrypt Kubernetes Secrets at rest, part 1: prove the leak and close it
- Enforce Kubernetes Pod Security Standards with the built-in Pod Security Admission
- Harden a Kubernetes cluster against the CIS Benchmark with kube-bench
- Limit the blast radius of a runaway pod with ResourceQuotas and LimitRanges
- Lock down a Kubernetes cluster with RBAC: give a workload exactly the permissions it needs
- Protect node metadata and the kubelet endpoint: an egress deny you can prove and kubelet auth checks
- Safely store Kubernetes secrets in Git with Sealed Secrets
- Score your Kubernetes cluster against NSA-CISA hardening with Kubescape
- Secure Kubernetes pods with a securityContext
- Secure the cluster front door: an Ingress with TLS and no anonymous access to the API server
- See every pod-to-pod flow with Cilium Hubble (and catch a connection that shouldn't exist)
- Upgrade a kind cluster by one minor version and prove it with a before and after scan
- Build a Kubernetes validating admission webhook from scratch (and fail closed)
- Detect Kubernetes control-plane threats from the audit log with Falco
- Encrypt Kubernetes Secrets at rest, part 2: rotate the key and catch the silent failures
- Encrypt Kubernetes Secrets at rest, part 3: move to a KMS provider (envelope encryption)
- Encrypt pod-to-pod traffic with Cilium WireGuard and prove it in a packet capture
- Enforce Kubernetes policy at admission with Kyverno: make the API server itself refuse the bad Pod
- Enforce Kubernetes policy at admission with OPA Gatekeeper
- Free Cloud Security Labs (147 hands-on) | Lion Cipher
- Free Foundations Labs (126 hands-on) | Lion Cipher
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
- Slides: Container and Kubernetes security basics
- Kubernetes cheat sheet
- Kubernetes official documentation
- Career map: 8 Cloud Security roles and what they ask for
- Cloud Security certifications and free study routes (6 listed)
- Cloud Security interview preparation
- All Kubernetes labs with filters
- Plain-English glossary
- Free cyber labs