创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机 Ubuntu18.04,4C/8G
Kubernetes版本信息
1.28.8
KubeSphere版本信息
v3.4.1。离线安装,使用kk安装。
问题是什么
1.首先我在生产服务器上安装好了harbor仓库,内网 https占用端口是8010,但是对外暴露的端口是58010
访问地址是:https://cx.xytech.cn:58010
2.我在另外一台服务器上制作离线镜像k8s v1.28.8,kubesphere v3.4.1
root@master01:/home/kube# ls
k8s_v1.28.8_v3.4.1_manifest.yml kk ksp_v1.28.8_v3.4.1_artifact.tar.gz ksp-v341-v1288-offline.yaml kubekey kubekey-v3.1.1-linux-amd64.tar.gz ubuntu-20.04-debs-amd64.iso
ksp-v341-v1288-offline.yaml 的私有仓库配置如下
registry:
type: harbor
auths:
"cx.xytech.cn:58010":
username: cbAdmin
password: xxxxDevuser0805
privateRegistry: "cx.xytech.cn:58010"
namespaceOverride: "kubesphereio"
执行推送镜像 ./kk artifact image push -f ksp-v341-v1288-offline.yaml -a ksp_v1.28.8_v3.4.1_artifact.tar.gz
报错如下:
19:42:33 CST [UnArchiveArtifactModule] Check the KubeKey artifact md5 value
19:45:35 CST success: [LocalHost]
19:45:35 CST [UnArchiveArtifactModule] UnArchive the KubeKey artifact
19:45:35 CST skipped: [LocalHost]
19:45:35 CST [UnArchiveArtifactModule] Create the KubeKey artifact Md5 file
19:45:35 CST skipped: [LocalHost]
19:45:35 CST [CopyImagesToRegistryModule] Copy images to a private registry from an artifact OCI Path
19:45:35 CST Source: oci:/home/kube/kubekey/images:kubesphereio:pause:3.9-amd64
19:45:35 CST Destination: docker://cx.xytech.cn
:58010/kubesphereio/pause:3.9-amd64
Getting image source signatures
trying to reuse blob sha256:61fec91190a0bab34406027bbec43d562218df6e80d22d4735029756f23c7007 at destination: Get “https://cx.xytech.cn
:8010/service/token?account=cbAdmin
&scope=repository%3Akubesphereio%2Fpause%3Apull%2Cpush&service=harbor-registry”: dial tcp 36.147.92.12:8010: i/o timeout
Getting image source signatures
trying to reuse blob sha256:61fec91190a0bab34406027bbec43d562218df6e80d22d4735029756f23c7007 at destination: Get “https://cx.xytech.cn
:8010/service/token?account=cbAdmin
&scope=repository%3Akubesphereio%2Fpause%3Apull%2Cpush&service=harbor-registry”: dial tcp 36.147.92.12:8010: i/o timeout
Getting image source signatures
trying to reuse blob sha256:61fec91190a0bab34406027bbec43d562218df6e80d22d4735029756f23c7007 at destination: Get “https://cx.xytech.cn
:8010/service/token?account=cbAdmin
&scope=repository%3Akubesphereio%2Fpause%3Apull%2Cpush&service=harbor-registry”: dial tcp 36.147.92.12:8010: i/o timeout
19:48:06 CST success: [LocalHost]
19:48:06 CST [CopyImagesToRegistryModule] Push multi-arch manifest to private registry
19:48:06 CST message: [LocalHost]
get manifest list failed by module cache
19:48:06 CST failed: [LocalHost]
error: Pipeline[ArtifactImagesPushPipeline] execute failed: Module[CopyImagesToRegistryModule] exec failed:
failed: [LocalHost] [PushManifest] exec failed after 1 retries: get manifest list failed by module cache
为什么会从cx.xytech.cn
:58010变成cx.xytech.cn
:8010
导致镜像推送失败