Remove CNI files when tearing down Kubernetes
This commit is contained in:
1 parent
e9eeaee520
commit
cbec624cd8
1 file changed
+1
-1
@@ -8,7 +8,7 @@ tear_down_kubeadm() {
|
|||||||
run_on $host "sudo systemctl stop kubelet"
|
run_on $host "sudo systemctl stop kubelet"
|
||||||
rm_containers $host $(docker_on $host ps -aq)
|
rm_containers $host $(docker_on $host ps -aq)
|
||||||
run_on $host "test ! -d /var/lib/kubelet || sudo find /var/lib/kubelet -execdir findmnt -n -t tmpfs -o TARGET -T {} \; | uniq | xargs -r sudo umount"
|
run_on $host "test ! -d /var/lib/kubelet || sudo find /var/lib/kubelet -execdir findmnt -n -t tmpfs -o TARGET -T {} \; | uniq | xargs -r sudo umount"
|
||||||
run_on $host "sudo rm -r -f /etc/kubernetes /var/lib/kubelet /var/lib/etcd"
|
run_on $host "sudo rm -r -f /etc/kubernetes /var/lib/kubelet /var/lib/etcd /etc/cni /opt/cni"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user