Merge pull request #113 from angelnu/patch-1

Unmount CSI plugin folder to avoid data lost on uninstall
This commit is contained in:
Xan Manning 2021-05-06 18:52:52 +01:00 committed by GitHub
commit ea03eaa9dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,7 @@ do_unmount_and_remove() {
do_unmount_and_remove '/run/k3s'
do_unmount_and_remove '{{ k3s_runtime_config['data-dir'] | default(k3s_data_dir) }}'
do_unmount_and_remove '/var/lib/kubelet/pods'
do_unmount_and_remove '/var/lib/kubelet/plugins'
do_unmount_and_remove '/run/netns/cni-'
# Remove CNI namespaces