Created
February 22, 2024 23:33
-
-
Save karawitan/92591c61e75a55389f5a2326c94b5106 to your computer and use it in GitHub Desktop.
kubectl delete finilizers
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
# when deletion of Kubernetes resource is getting stuck, solve it the bad way | |
kubectl patch configmap/mymap \ | |
--type json \ | |
--patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' | |
# | |
kubectl patch ns/longhorn-system -p '{"metadata":{"finalizers":[]}}' --type=merge | |
# for a better option , read "Stop Messing with Kubernetes Finalizers" at https://martinheinz.dev/blog/74 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment