This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |