Created
October 29, 2019 02:25
-
-
Save scue/bde21f6a85c98f306f4c3272c6249092 to your computer and use it in GitHub Desktop.
Remove kubernetes(centos7)
This file contains hidden or 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/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -sL https://git.io/scue-k8s-remove.sh | sh