reset: unmount calico cgroup2 fs before deleting /run/calico (#13592)

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
This commit is contained in:
ERIK
2026-10-08 12:17:58 +00:00
committed by GitHub
parent a1102771f8
commit d74d180c09
2 changed files with 19 additions and 2 deletions
@@ -28,3 +28,18 @@
args:
executable: /bin/bash
changed_when: false
# The calico-node -init container mounts the root cgroup2 fs here, so it must be unmounted before removal
- name: Reset | unmount calico cgroup2 filesystem
ansible.posix.mount:
path: /run/calico/cgroup
state: unmounted
tags:
- files
- name: Reset | delete calico runtime directory
file:
path: /run/calico
state: absent
tags:
- files