kubesphere 默认镜像无法拉取 ks-console服务启动失败

释放双眼,带上耳机,听听看~!
🤖 由 ChatGPT 生成的文章摘要

自从Docker Hub国内禁止后,导致kubesphere镜像会拉取失败,目前根据论坛解决方法可以在ClusterConfiguration CRD 中修改ks-install来解决

官方社区解答:https://ask.kubesphere.com.cn/forum/d/24242-v332-mu-qian-docker-hubwu-fa-shi-yong-jing-xiang-wu-fa-la-qu/9

问题描述

kubesphere 默认镜像无法拉取 ks-console服务启动失败

kubesphere 默认镜像无法拉取 ks-console服务启动失败

kubesphere 默认镜像无法拉取 ks-console服务启动失败

由于网络问题,导致镜像会拉取失败,直接修改ks-apiserver也会被重置为kubesphere/ks-apiserver:v3.4.1地址

 kubelet  (combined from similar events): Failed to pull image "kubesphere/ks-apiserver:v3.4.1": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/kubesphere/ks-apiserver:v3.4.1": failed to resolve reference "docker.io/kubesphere/ks-apiserver:v3.4.1": failed to do request: Head "https://registry-1.docker.io/v2/kubesphere/ks-apiserver/manifests/v3.4.1": dial tcp 45.114.11.25:443: i/o timeout
  Normal   BackOff  12s (x284635 over 48d)  kubelet  Back-off pulling image "kubesphere/ks-apiserver:v3.4.1"

kubesphere 默认镜像无法拉取 ks-console服务启动失败

解决办法

在CRD资源对象搜索ClusterConfiguration

kubesphere 默认镜像无法拉取 ks-console服务启动失败

找到ks-install,进行编辑

kubesphere 默认镜像无法拉取 ks-console服务启动失败

添加local_reistry配置

kubesphere 默认镜像无法拉取 ks-console服务启动失败

  local_registry: harbor.frps.cn
#Harbor.frps.cn为私有镜像地址,也可以使用阿里云加速地址

接下来我们调整系统组件镜像地址

找到ks-apiserver

kubesphere 默认镜像无法拉取 ks-console服务启动失败

修改镜像地址

kubesphere 默认镜像无法拉取 ks-console服务启动失败

          image: 'harbor.frps.cn/dockerhub/kubesphere/ks-apiserver:v3.4.1'

kubesphere 默认镜像无法拉取 ks-console服务启动失败

其它组件也可以按照这个方法修改,我这里使用的是Harbor,也可以使用阿里云的代理地址

给TA打赏
共{{data.count}}人
人已打赏
DockerKubernetes

Kind快速部署Kubernetes多集群

2023-11-22 16:06:23

Linux

Linux性能监控工具 gtop

2018-12-13 17:27:26

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索