创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
云主机,Ubuntu24 LTS,8C16G
Kubernetes版本信息
v1.34.1
容器运行时
不涉及
KubeSphere版本信息
kubesphere v4.2.1
问题是什么
参考官网文档制作的离线制品,在部署时无法完成镜像仓库初始化。
离线制品的成品是异常的。可能离线制品的制作部分还需优化。
root@master1:/opt/offline# ./kk init registry -i inventory_init_registry.yaml --workdir $(pwd)/prepare --set binary_dir=$(pwd)/kubekey/kubekey
_ __ _ _ __
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ |_| | |_) | __/ |\ \ __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
__/ |
|___/
13:50:36 CST [Playbook default/init-registry-vd86d] start
13:50:36 CST [roles/native/root] OS | Add sudo secure path
⠋ [localhost] success [0s]
⠋ [harbor] success [0s]
13:50:36 CST gather_facts
⠋ [localhost] success [0s]
⠋ [harbor] success [0s]
13:50:36 CST [roles/precheck/image-registry] Image Registry | Verify image registry default values
⠋ [localhost] failed [0s]
⠋ [harbor] failed [0s]
13:50:36 CST [Playbook default/init-registry-vd86d] finish. total: 3,success: 2,ignored: 0,failed: 1
Error: task [Image Registry | Verify image registry default values](default/init-registry-vd86d-669hz) run failed:
[harbor][executor]: module run failed
[harbor][item=<nil>][0]: cri.dockercompose_version and cri.docker_version must be set when install image registry
[localhost][executor]: module run failed
[localhost][item=<nil>][0]: cri.dockercompose_version and cri.docker_version must be set when install image registry
task [Image Registry | Verify image registry default values](default/init-registry-vd86d-669hz) run failed:
[harbor][executor]: module run failed
[harbor][item=<nil>][0]: cri.dockercompose_version and cri.docker_version must be set when install image registry
[localhost][executor]: module run failed
[localhost][item=<nil>][0]: cri.dockercompose_version and cri.docker_version must be set when install image registryroot@master1:/opt/offline#
root@master1:/opt/offline#