Skip to content

Instantly share code, notes, and snippets.

@Vishal1297
Created July 27, 2022 00:44
Show Gist options
  • Save Vishal1297/253af7a8d408c7f2bb9a0e36b2366004 to your computer and use it in GitHub Desktop.
Save Vishal1297/253af7a8d408c7f2bb9a0e36b2366004 to your computer and use it in GitHub Desktop.
Reset and init kube
#!/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