Skip to content

Instantly share code, notes, and snippets.

View bspach's full-sized avatar

Brett Anspach bspach

  • Ingenio, LLC
  • Madison, WI
  • 02:16 (UTC -05:00)
View GitHub Profile
@bspach
bspach / kubectl
Last active February 26, 2025 20:46
Kubernetes
# Remove finalizers from a stuck resource
kubectl patch <ResourceType> <ResourceName> -n <Namespace> -p '{"metadata":{"finalizers":[]}}' --type=merge
# Force remove stuck pod
kubectl delete pod <pod-name> --namespace=<namespace> --grace-period=0 --force