Skip to content

Commit c317f03

Browse files
author
Eric Ernst
committed
add a crio cleanup script
Signed-off-by: Eric Ernst <[email protected]>
1 parent 85423c6 commit c317f03

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crio-k8s-cleanup.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sudo kubeadm reset
2+
for c in `sudo crictl ps | cut -c -10 | grep -v CONTAIN`; do sudo crictl stop $c; done
3+
for c in `sudo crictl ps | cut -c -10 | grep -v CONTAIN`; do sudo crictl rm $c; done
4+
for c in `sudo crio-runc list -q`; do sudo crio-runc kill $c; done
5+
for c in `sudo crio-runc list -q`; do sudo crio-runc delete $c; done
6+
for c in `sudo cc-runtime list -q`; do sudo cc-runtime kill $c; done
7+
for c in `sudo cc-runtime list -q`; do sudo cc-runtime delete $c; done

0 commit comments

Comments
 (0)