• DevOps
  • 4.1.3流水线无法拉取node环境镜像

创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
例如:虚拟机,Centos7.9,4C/8G

Kubernetes版本信息
kubectl version 命令执行结果贴在下方

WARNING: This version information is deprecated and will be replaced with the output from kubectl version –short. Use –output=yaml|json to get the full version.

Client Version: version.Info{Major:“1”, Minor:“27”, GitVersion:“v1.27.16”, GitCommit:“cbb86e0d7f4a049666fac0551e8b02ef3d6c3d9a”, GitTreeState:“clean”, BuildDate:“2024-07-17T01:53:56Z”, GoVersion:“go1.22.5”, Compiler:“gc”, Platform:“linux/amd64”}

Kustomize Version: v5.0.1

Server Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.12”, GitCommit:“b058e1760c79f46a834ba59bd7a3486ecf28237d”, GitTreeState:“clean”, BuildDate:“2022-07-13T14:53:39Z”, GoVersion:“go1.16.15”, Compiler:“gc”, Platform:“linux/amd64”}

WARNING: version difference between client (1.27) and server (1.22) exceeds the supported minor version skew of +/-1

容器运行时
docker version

Client:

Version: 24.0.6

API version: 1.43

Go version: go1.20.7

Git commit: ed223bc

Built: Mon Sep 4 12:30:51 2023

OS/Arch: linux/amd64

Context: default

Server: Docker Engine - Community

Engine:

Version: 24.0.6

API version: 1.43 (minimum version 1.12)

Go version: go1.20.7

Git commit: 1a79695

Built: Mon Sep 4 12:32:17 2023

OS/Arch: linux/amd64

Experimental: false

containerd:

Version: v1.7.3

GitCommit: 7880925980b188f4c97b462f709d0db8e8962aff

runc:

Version: 1.1.9

GitCommit: v1.1.9-0-gccaecfc

docker-init:

Version: 0.19.0

GitCommit: de40ad0

/ crictl version / nerdctl version 结果贴在下方

KubeSphere版本信息
例如:v4.1.3。在线安装。

问题是什么
报错日志是什么,最好有截图。

Started by user admin

[Pipeline] Start of Pipeline

[Pipeline] echo

[WARNING] containerTemplate option is deprecated, use yaml syntax to define containers.

[Pipeline] podTemplate

[Pipeline] {

[Pipeline] node

Created Pod: kubernetes kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Scheduled] Successfully assigned kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl to docker06

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Pulled] Container image “kubesphere/builder-base:v3.2.2” already present on machine

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Created] Created container base

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Started] Started container base

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Pulled] Container image “jenkins/inbound-agent:4.10-2” already present on machine

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Created] Created container jnlp

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Started] Started container jnlp

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Pulling] Pulling image “swr.cn-southwest-2.myhuaweicloud.com/ks/node:14.19.0”

[Warning][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Failed] Failed to pull image “swr.cn-southwest-2.myhuaweicloud.com/ks/node:14.19.0”: rpc error: code = Unknown desc = Error response from daemon: Head “https://swr.cn-southwest-2.myhuaweicloud.com/v2/ks/node/manifests/14.19.0”: denied: You may not login yet

[Warning][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Failed] Error: ErrImagePull

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][BackOff] Back-off pulling image “swr.cn-southwest-2.myhuaweicloud.com/ks/node:14.19.0”

[Warning][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Failed] Error: ImagePullBackOff

Still waiting to schedule task

‘demoszndq-demo1-1-lm56m-dt33n-1wgpl’ is offline

[Normal][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Pulling] Pulling image “swr.cn-southwest-2.myhuaweicloud.com/ks/node:14.19.0”

ERROR: Unable to pull Docker image “swr.cn-southwest-2.myhuaweicloud.com/ks/node:14.19.0”. Check if image tag name is spelled correctly.

[Pipeline] // node

[Pipeline] }

[Pipeline] // podTemplate

[Pipeline] End of Pipeline

Queue task was cancelled

Finished: ABORTED

4 天 后

registry.cn-beijing.aliyuncs.com/kubesphereio/node:v3.23.2

你把agent用的镜像名字改成这个试下

你自己配置的华为云的镜像加速被拒绝了,原因是华为云认为你没登录账户,所以不给你提供容器镜像下载

    winterallen

    报错信息有标记。如果你按照文档严格操作,那就是文档里有错误

    [Warning][kubesphere-devops-worker/demoszndq-demo1-1-lm56m-dt33n-1wgpl][Failed] Failed to pull image “swr.cn-southwest-2.myhuaweicloud.com/ks/node:14.19.0”: rpc error: code = Unknown desc = Error response from daemon: Head “https://swr.cn-southwest-2.myhuaweicloud.com/v2/ks/node/manifests/14.19.0”: denied: You may not login yet