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

操作系统信息
centos7.9

KubeSphere版本信息
kubesphere-v3.3.0

问题是什么

执行命令:

./kk create cluster -f ksp-v341-v1228-offline.yaml -a kubesphere-v3.3.0-artifact.tar.gz --with-packages --skip-push-images

出现报错

FATA[0000] pulling image: rpc error: code = Unknown desc = failed to pull and unpack image "dockerhub.kubekey.local/kubesphereio/pause:3.7": failed to resolve reference "dockerhub.kubekey.local/kubesphereio/pause:3.7": failed to do request: Head "https://dockerhub.kubekey.local/v2/kubesphereio/pause/manifests/3.7": x509: certificate signed by unknown authority: Process exited with status 1

查看本地docker上的ca证书是存在的

以下是我yaml配置

registry:
    type: "harbor"
    auths:
      "dockerhub.kubekey.local":
         username: admin
         password: Harbor12345
         certsPath: "/etc/docker/certs.d/dockerhub.kubekey.local"
    privateRegistry: "dockerhub.kubekey.local"
    namespaceOverride: "kubesphereio"
    registryMirrors: []
    insecureRegistries: []

kk push镜像到harbor却可以,./kk artifact image push -f ksp-v341-v1228-offline.yaml -a ksp-v3.4.1-v1.28-artifact.tar.gz