Remove CNI files when tearing down Kubernetes

This commit is contained in:
Bryan Boreham committed 2016-11-21 16:08:50 +00:00
1 parent e9eeaee520
commit cbec624cd8
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@ tear_down_kubeadm() {
run_on $host "sudo systemctl stop kubelet"
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 "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
}