Skip to content

Instantly share code, notes, and snippets.

View selcukkubur's full-sized avatar
🏠
Working from home

Selçuk KUBUR selcukkubur

🏠
Working from home
View GitHub Profile
@davidcorbin
davidcorbin / script.sh
Last active August 1, 2024 17:53
Remove Rancher from Cluster - Force Delete CRDs
# Manually remove finalizers
kubectl edit -n cattle-system secret tls-rancher
kubectl patch secret tls-rancher -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system
kubectl patch namespace cattle-system -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system
kubectl delete namespace cattle-system --grace-period=0 --force
kubectl patch namespace cattle-global-data -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system
kubectl delete namespace cattle-global-data --grace-period=0 --force