mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Uninstall/killall should clean up /var/lib/kubelet also
This commit is contained in:
parent
30c14a4db6
commit
0e0fbea23c
@ -489,6 +489,7 @@ do_unmount() {
|
|||||||
|
|
||||||
do_unmount '/run/k3s'
|
do_unmount '/run/k3s'
|
||||||
do_unmount '/var/lib/rancher/k3s'
|
do_unmount '/var/lib/rancher/k3s'
|
||||||
|
do_unmount '/var/lib/kubelet/pods'
|
||||||
do_unmount '/run/netns/cni-'
|
do_unmount '/run/netns/cni-'
|
||||||
|
|
||||||
# Delete network interface(s) that match 'master cni0'
|
# Delete network interface(s) that match 'master cni0'
|
||||||
@ -545,6 +546,7 @@ done
|
|||||||
|
|
||||||
rm -rf /etc/rancher/k3s
|
rm -rf /etc/rancher/k3s
|
||||||
rm -rf /var/lib/rancher/k3s
|
rm -rf /var/lib/rancher/k3s
|
||||||
|
rm -rf /var/lib/kubelet
|
||||||
rm -f ${BIN_DIR}/k3s
|
rm -f ${BIN_DIR}/k3s
|
||||||
rm -f ${BIN_DIR}/${KILLALL_K3S_SH}
|
rm -f ${BIN_DIR}/${KILLALL_K3S_SH}
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user