Created
July 27, 2022 00:44
-
-
Save Vishal1297/253af7a8d408c7f2bb9a0e36b2366004 to your computer and use it in GitHub Desktop.
Reset and init kube
This file contains 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 characters
#!/bin/bash | |
## Reset kube | |
sudo kubeadm reset | |
## Remove kube configs | |
sudo rm -rf /etc/kubernetes/kubelet.conf | |
sudo rm -rf /etc/kubernetes/pki/ca.crt | |
## Kill used port - 10250 | |
sudo kill -9 $(sudo lsof -t -i:10250) | |
## Init kube | |
sudo kubeadm init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment