开发者社区 > 云原生 > 正文

安装工具时为“ImagePullBackOff”

当我执行命令时:

helm install --namespace kube-system --name chaosblade-operator --set operator.repository=registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-operator --set blade.repository=registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-tool chaosblade-operator-0.0.1.tgz

并描述pod信息:

kubectl describe pod -n kube-system chaosblade-tool-78zww ...... Events: Type Reason Age From Message


Warning Failed 50m (x29 over 3h) kubelet, k8s-master Failed to pull image "registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-tool:0.4.0": rpc error: code = Unknown desc = Error response from daemon: Get https://r) Normal Pulling 45m (x30 over 3h) kubelet, k8s-master Pulling image "registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-tool:0.4.0" Normal BackOff 5m44s (x731 over 3h) kubelet, k8s-master Back-off pulling image "registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-tool:0.4.0" Warning Failed 43s (x752 over 3h) kubelet, k8s-master Error: ImagePullBackOff

我提取了图像,但出现以下错误:

[root@k8s-master ~]# docker pull registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-tool:0.4.0 Error response from daemon: Get https://registry-vpc.cn-hangzhou.aliyuncs.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

然后我在/etc/docker/daemon.json中添加了我的阿里云镜像加速程序,并重新启动了docker,但错误仍然存在。

[root@k8s-master ~]# cat /etc/docker/daemon.json { "registry-mirrors": ["https://xxxxxx.mirror.aliyuncs.com", "https://registry.docker-cn.com", "http://hub-mirror.c.163.com", "http://c32b78eb.m.daocloud.io"], "insecure-registries":["10.141.211.160:5000"], "exec-opts": ["native.cgroupdriver=systemd"] }

顺便说一句,我需要哪种版本的舵?现在我使用helm v3.0.0-rc.2,但我发现有些命令与您的指导不同。谢谢

期待结果:提取图像并成功运行pod。

如何复制(尽可能少且精确)

1、 helm安装

helm install --namespace kube-system --name chaosblade-operator --set operator.repository=registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-operator --set blade.repository=registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-tool chaosblade-operator-0.0.1.tgz

2、 kubectl获取/描述pod-n kube系统。

3、 码头装卸注册vpc.cn- 杭州.阿里云cs.com/chaosbladeChaosblade工具:0.4.0

环境信息

[root@k8s-master ~]# uname -a Linux k8s-master 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux [root@k8s-master ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@k8s-master ~]# docker version Client: Version: 18.09.5 API version: 1.39 Go version: go1.10.8 Git commit: e8ff056 Built: Thu Apr 11 04:43:34 2019 OS/Arch: linux/amd64 Experimental: false

Server: Docker Engine - Community Engine: Version: 18.09.5 API version: 1.39 (minimum version 1.12) Go version: go1.10.8 Git commit: e8ff056 Built: Thu Apr 11 04:13:40 2019 OS/Arch: linux/amd64 Experimental: false [root@k8s-master ~]# kubectl version Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"l} Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:02:58Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"l} [root@k8s-master ~]# helm version version.BuildInfo{Version:"v3.0.0-rc.2", GitCommit:"82ea5aa774661cc6557cb57293571d06f94aff0c", GitTreeState:"clean", GoVersion:"go1.13.3"}

原提问者GitHub用户hechuan73

展开
收起
码字王 2023-06-12 17:21:37 241 0
1 条回答
写回答
取消 提交回答
  • 请删除helm命令中的--set选项,或将该值替换为包含chaosblade运算符0.0.1和chaosblad工具0.4.0的存储库。

    这只是如何修改helm install--namespace kube system--name chaosblade operator--set operator的镜像存储库地址的一个示例。repository=registry-vpc.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-operator--set blade.repository=registr-vpc-cn-hangzzhou.aliyuncs.com/chaosblade/caosblade-tool chaosblad-operator-0.0.1.tgz命令。

    原回答者GitHub用户xcaspar

    2023-06-12 17:37:56
    赞同 展开评论 打赏

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载