k8s环境清理

#!/bin/sh
docker rm -f $(docker ps -qa)
docker volume rm $(docker volume ls -q)
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico"
for dir in $cleanupdirs; do
echo “Removing $dir”
rm -rf $dir
done
posted @ 2022-06-12 19:11  ament  阅读(47)  评论(0编辑  收藏  举报