Recover a Stuck Namespace Termination (Finalizers)

Advanced · 30 minutes · 5 tasks, checked automatically · 100 points

In this advanced troubleshooting lab you will deliberately create a namespace that gets permanently stuck in the Terminating state — a very common real-world incident caused by custom finalizers that have no controller to process them. You will diagnose why the namespace will not delete, safely patch away the blocking finalizers, and confirm the namespace is fully gone. Along the way you will also practice the same technique on individual resources (a ConfigMap with a custom finalizer) so you understand the pattern at both the resource and namespace level.

What you’ll learn

How this lab works

  1. Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
  2. 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.
  3. Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
  4. Finish and keep going: 100 points, your progress saved, and the next lab to try.

What it runs on

What you need

Topics: kubernetes, troubleshooting, finalizers, namespaces, terminating, kubectl, incident-response, garbage-collection

Create a free account to start this lab.

Keep going