Kubernetes / Cluster Operations, Access & Incident Response
Investigate a namespace stuck Terminating without stripping finalizers
Namespace deletion can wait for unavailable APIs or controllers to finish cleanup. Read conditions before forcing completion.
Environment and inputs: Kubernetes · kubectl with supported client/server versions and delegated RBAC. Examples use namespace app unless noted. Check context, namespace, APIs and provider support first.
Start with this check
Confirm the environment and replace sample objects, namespaces, images, paths and hosts with approved targets. Share only relevant, sanitized output. Follow the workload owner’s process for changes.
kubectl get namespace app -o yaml
Read the result
Status conditions can identify remaining content or discovery failures. Finalizers represent cleanup obligations, not merely cosmetic blockers.
Resolve and verify
Restore the unavailable API or responsible controller and inspect remaining objects through approved access. Complete cleanup through the supported owner workflow.
Before changing production
Do not remove finalizers blindly; external resources and data can be orphaned or left inconsistent.