Skip to content

Instantly share code, notes, and snippets.

@xetys xetys/k8s-reset.sh
Last active Jan 28, 2017

Embed
What would you like to do?
coroes-k8s-reset
#!/bin/bash
sudo systemctl stop kubelet docker flanneld etcd2 && sudo rm -rf /etc/kubernetes/manifests/* && sudo rm -rf /etc/kubernetes/cni/ && sudo rm -rf /etc/systemd/system/kubelet.service && sudo rm -rf /etc/systemd/system/flanneld.service.d && sudo rm -rf /etc/systemd/system/docker.service.d/ && sudo rm -rf /var/lib/etcd2/* && sudo systemctl start etcd2
sudo iptables --flush
sudo iptables -tnat --flush
sudo systemctl start kubeinstall.service
sudo systemctl start flanneld docker kubelet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.