Debug a Failing Admission Webhook Blocking All Deployments
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced troubleshooting lab, you will diagnose and fix a broken ValidatingWebhookConfiguration that is silently blocking all Deployment resources from being created or updated across the cluster. You will inspect webhook configurations, trace the failure to a misconfigured or unreachable webhook service, repair the issue, and confirm that normal deployments resume. This lab mirrors a real-world production incident where a security or policy webhook goes rogue and causes cluster-wide deployment outages.
What you’ll learn
- Deploy a broken ValidatingWebhookConfiguration that blocks all Deployments and understand why it causes failures
- Diagnose the root cause by inspecting webhook configurations, service endpoints, and API server audit logs
- Repair the webhook configuration so that Deployments succeed again and validate the fix end-to-end
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: admission-webhooks, validatingwebhookconfiguration, troubleshooting, kubernetes, failurePolicy, debugging, cluster-health, api-server, kind
Create a free account to start this lab.
Keep going
- Debug a Broken Cluster: CrashLoopBackOff, ImagePullBackOff, and Pending Pods
- Troubleshoot Failed PVC Binding and Volume Mounts
- Recover a Stuck Namespace Termination (Finalizers)
- Inject Faults and Test Resilience with Chaos Mesh
- Diagnose Pending Pods: Scheduling and Insufficient Resources
- Fix CrashLoopBackOff: Logs, Exit Codes, and Probes