kubernetes-namespace

How to force delete a Kubernetes Namespace?

|▌冷眼眸甩不掉的悲伤 提交于 2020-07-04 07:45:26
问题 How do I force delete Namespaces stuck in Terminating? Steps to recreate: Apply this YAML apiVersion: v1 kind: Namespace metadata: name: delete-me spec: finalizers: - foregroundDeletion kubectl delete ns delete-me It is not possible to delete delete-me . The only workaround I've found is to destroy and recreate the entire cluster. Things I've tried: None of these work or modify the Namespace. After any of these the problematic finalizer still exists. Edit the YAML and kubectl apply Apply: