Created
February 22, 2024 23:33
-
-
Save karawitan/92591c61e75a55389f5a2326c94b5106 to your computer and use it in GitHub Desktop.
Revisions
-
karawitan created this gist
Feb 22, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ # 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