🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to delete/remove/clean existing corrupted or old kubeadm kubernetes clusters setup?

RHEL / Centos

$ docker container prune
$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)
$ systemctl stop kubelet
$ systemctl stop docker
$ find /var/lib/kubelet | xargs -n 1 findmnt -n -t tmpfs -o TARGET -T | uniq | xargs -r umount -v
$ rm -r -f /etc/kubernetes /var/lib/kubelet /var/lib/etcd
$ kubeadm reset 
$ iptables --flush
$ sudo rm -rf ~/.kube
# Reboot A Server
$ systemctl start docker
$ systemctl enable --now kubeletCode language: PHP (php)

Ubuntu


$ kubeadm reset
$ sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube*   
$ sudo apt-get autoremove  
$ sudo rm -rf ~/.kube
Code language: JavaScript (javascript)

How to remove or cleanup kubernetes worker nodes in Centos 7?

$ docker rm $(docker ps -aq)
$ docker rm -f -v $(docker ps -q)
$ systemctl stop kubelet
$ systemctl stop docker
$ find /var/lib/kubelet | xargs -n 1 findmnt -n -t tmpfs -o TARGET -T | uniq | xargs -r umount -v
$ rm -r -f /etc/kubernetes /var/lib/kubelet /var/lib/etcd
$ kubeadm reset
$ iptables --flush
$ sudo rm -rf ~/.kube
$ sudo rm -rf /etc/kubernetes
$ yum remove -y kubelet kubeadm kubectl
$ echo "1" >/proc/sys/net/bridge/bridge-nf-call-iptables

# REBOOT

$ yum install -y kubelet kubeadm kubectl
$ systemctl start docker && systemctl enable docker
$ systemctl start kubelet && systemctl enable kubelet
$ systemctl daemon-reload
$ systemctl enable --now kubelet
$ systemctl restart kubelet

# Now Run Join Command as You got earlier

How to remove or cleanup kubernetes worker nodes in Ubuntu?

$ kubeadm reset
$ sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube*   
$ sudo apt-get autoremove  
$ sudo rm -rf ~/.kubeCode language: JavaScript (javascript)

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.