You deleted a namespace an hour ago and it's still `Terminating`.
IntermediateTroubleshootingKubernetes cluster-level
Answer
Likely causes → Some object inside still has a finalizer whose controller is gone (for example a custom resource from an uninstalled operator), or the namespace controller can't list a resource type because an APIService is unavailable (often v1beta1.metrics.k8s.io when metrics-server is down).
Diagnose →
kubectl get ns old-team -o jsonpath='{.status.conditions}' | jq
kubectl get apiservice | grep False
kubectl api-resources --verbs=list --namespaced -o name | xargs -n1 kubectl get -n old-team --ignore-not-found --show-kind
Fix → Fix the broken APIService (repair metrics-server or delete the stale APIService). For orphaned custom resources, reinstall the operator so it can clean up, or remove the finalizer from each stuck object:
kubectl patch mycrd/thing -n old-team --type=merge -p '{"metadata":{"finalizers":null}}'
Removing finalizers skips cleanup of external resources (load balancers, cloud volumes), so check those manually.
Prevent → Delete custom resources before uninstalling their operators, and alert on unavailable APIServices.
More on Kubernetes cluster-level
Every `kubectl` command fails with "The connection to the server 10.0.1.10:6443 was refused - did you specify the right host or port?"BeginnerA new deployment's pods stay Pending with "0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod."BeginnerPods are Pending, but Cluster Autoscaler won't add nodes; the pod events say "pod didn't trigger scale-up: 2 node(s) didn't match Pod's node affinity/selector, 1 max node group size reached".IntermediateA node goes NotReady and kubelet logs "PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s".IntermediateAfter a node was terminated, its pods have shown `Terminating` for two hours and their replacements aren't being created.IntermediateAPI writes start failing cluster-wide with "etcdserver: mvcc: database space exceeded". Deploys, scaling and even leader election stop working.Advanced