Skip to content

Instantly share code, notes, and snippets.

@scue
Created October 29, 2019 02:25
Show Gist options
  • Save scue/bde21f6a85c98f306f4c3272c6249092 to your computer and use it in GitHub Desktop.
Save scue/bde21f6a85c98f306f4c3272c6249092 to your computer and use it in GitHub Desktop.
Remove kubernetes(centos7)
#!/bin/sh
set -x
kubeadm reset --force
yum remove -y kubeadm kubectl kubelet kubernetes-cni kube*
yum autoremove -y
[ -e ~/.kube ] && rm -rf ~/.kube
[ -e /etc/kubernetes ] && rm -rf /etc/kubernetes
[ -e /opt/cni ] && rm -rf /opt/cni
@scue
Copy link
Author

scue commented Oct 29, 2019

curl -sL https://git.io/scue-k8s-remove.sh | sh

@muhbahrami
Copy link

Thank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment