Merge pull request #915 from erikwilson/cleanup-install-kubelet

Uninstall/killall should clean up /var/lib/kubelet also
This commit is contained in:
Erik Wilson 2019-10-18 11:28:49 -07:00 committed by GitHub
commit 882014d12a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -489,6 +489,7 @@ do_unmount() {
do_unmount '/run/k3s'
do_unmount '/var/lib/rancher/k3s'
do_unmount '/var/lib/kubelet/pods'
do_unmount '/run/netns/cni-'
# Delete network interface(s) that match 'master cni0'
@ -545,6 +546,7 @@ done
rm -rf /etc/rancher/k3s
rm -rf /var/lib/rancher/k3s
rm -rf /var/lib/kubelet
rm -f ${BIN_DIR}/k3s
rm -f ${BIN_DIR}/${KILLALL_K3S_SH}
EOF