环境信息:
RKE2 版本:
rke2 version v1.24.11+rke2r1 (23bdc987de9658eb80a5e03862ab34efdecf6d4e)
go version go1.19.6 X:boringcrypto
节点 CPU 架构,操作系统和版本:
Linux k8s-01 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
集群配置:
3 servers
问题描述:
清理节点旧镜像,磁盘未减少
重现步骤:
1.查看磁盘
df -h
2.删除镜像
ctr --address /run/k3s/containerd/containerd.sock -n k8s.io images ls | grep pantum | xargs ctr --address /run/k3s/containerd/containerd.sock -n k8s.io images rm
3.再次查看磁盘
df -h
- 安装 RKE2 的命令:
curl -sfL https://rancher-mirror.oss-cn-beijing.aliyuncs.com/rke2/install.sh | INSTALL_RKE2_MIRROR=cn INSTALL_RKE2_VERSION=v1.24.11+rke2r1 sh -
systemctl enable rke2-server.service
systemctl start rke2-server.service
预期结果:
磁盘减少
实际结果:
磁盘未减少