8

k3s 如何解决 ErrImagePull 拉取镜像超时

 1 year ago
source link: https://www.v2ex.com/t/927224
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Kubernetes

k3s 如何解决 ErrImagePull 拉取镜像超时

  vmoewill · 21 分钟前 · 40 次点击

由于私有的镜像太大了,worker 节点的带宽很小,需要拉取将近 3 分钟左右,但是 k3s 每次都是在 2 分钟的时候报 ErrImagePull 错误。有什么方法能增大这个 2 分钟的限制吗?

  1. k3s 配置文件和 docker 的 daemon.json 快翻烂了,也没找到有关配置拉取时间的参数,临时的解决方法是手动在 worker 节点 pull 下镜像。我在 k3s 的 issue 中,发现有人回复说,这属于 docker 的问题,不属于 k3s 的范畴,但网上千篇一律的修改 dns 和镜像仓库加速似乎也不是解决镜像仓库的问题。

  2. daemon.json -> https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file

  3. docker version: 20.10.21 k3s version: v1.24.6+k3s1


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK