Skip to content

Instantly share code, notes, and snippets.

View ejancorp's full-sized avatar

Efren Jan Corpuz ejancorp

View GitHub Profile
@ejancorp
ejancorp / reset.sh
Last active November 24, 2019 10:06 — forked from carlosedp/gist:5040f4a1b2c97c1fa260a3409b5f14f9
Reset Kubernetes cluster with Weave
# Drain and delete the nodes (for each node you have)
kubectl drain kubenode1 --delete-local-data --force --ignore-daemonsets
kubectl delete node kubenode1
# Reset the deployment
sudo kubeadm reset
# On each node
## Reset the nodes and weave