0
点赞
收藏
分享

微信扫一扫

k8s.1.2x containerd清理过期镜像

Sikj_6590 2022-02-22 阅读 56
  • 之前官网提供的是docker 自动清除的过期镜像参数官网已经弃用

  • 弃用参数如下
参数
image-gc-high-threshold–默认为 85%
image-gc-low-threshold–默认为 70%

新的参数如下:

编辑 vim /var/lib/kubelet/config.yaml
keyValue
imageGCHighThresholdPercent:80
imageGCLowThresholdPercent:60
maxPods:(pod最大数)180

在这里插入图片描述
官网提供的参数详解自己看了,或者自己官网看,不过多讲了
在这里插入图片描述

 systemctl daemon-reload
 systemctl restart kubelet.service

在这里插入图片描述
官网参考连接

举报

相关推荐

0 条评论