Skip to content

Instantly share code, notes, and snippets.

@hazim1093
hazim1093 / rancher-server-cleanup-script.sh
Last active October 4, 2021 11:38 — forked from davidcorbin/script.sh
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
@hazim1093
hazim1093 / clone-and-pull-awesome-home-kubernetes.py
Last active April 9, 2021 15:19
Clone and Pull awesome-home-kubernetes repositories
##############################################################
# Clone and Pull awesome-home-kubernetes repositories
# Clone or pull all repositories mentioned in the readme for [awesome-home-kubernetes](https://github.com/k8s-at-home/awesome-home-kubernetes).
## Pre requisties
# ```
# pip3 install bs4
# ```
##############################################################
import os