创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
操作系统信息
例如:虚拟机 麒麟V10 SP3 amd 2C/4G
Kubernetes版本信息
例如:v1.30.6
容器运行时
使用 docker/containerd
KubeSphere版本信息
例如:v4.2.1。离线安装。
问题是什么
制作离线包报错。
[root@node2 app]# ./package.sh config.yaml
Exporting artifact with kk…
| | / / | | | | / /
| |/ / _ _| |__ ___| |/ / ___ _ _
| \| | | | '_ \ / _ \ \ / _ \ | | |
| |\ \ || | |) | __/ |\ \ __/ |_| |
\| \/\,|./ \\| \/\|\__, |
__/ |
|___/
17:59:54 CST [Playbook default/artifact-export-dr7fh] start
17:59:54 CST [roles/native/root] OS | Add sudo secure path
⠋ [localhost] success [0s]
17:59:54 CST gather_facts
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Load version-specific settings for Kubernetes
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Load architecture-specific download URLs for each artifact version
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Reset temporary directory
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Determine operating system architecture for each node
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Get kubelet.service LoadState
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Get kubelet.service ActiveState
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Get installed Kubernetes version
⠋ [localhost] ignore [0s]
17:59:54 CST [roles/defaults] Defaults | Get etcd.service LoadState and save to variable
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Get etcd.service ActiveState and save to variable
⠋ [localhost] success [0s]
17:59:54 CST [roles/defaults] Defaults | Get installed etcd version
⠋ [localhost] ignore [0s]
17:59:54 CST [roles/defaults] Defaults | Select the initialization node for the cluster
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Artifact | Extract artifact archive to working directory
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Binary | Ensure etcd binary is present
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Binary | Ensure Kubernetes binaries are present
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Binary | Ensure CNI plugins are present
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Binary | Ensure Helm binary is present
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Binary | Ensure crictl binary is present
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Binary | Ensure Docker binary is present
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Binary | Ensure cri-dockerd binary is present
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Binary | Ensure containerd binary is present
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Binary | Ensure runc binary is present
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Binary | Ensure calicoctl binary is present
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Binary | Ensure Docker Registry binary is present
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Binary | Ensure docker-compose binary is present
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Binary | Ensure Harbor binary is present
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Binary | Ensure keepalived binary is present
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Helm | Ensure the Calico binary is available
⠋ [localhost] success [0s]
17:59:55 CST [roles/download] Helm | Ensure the Cilium binary is available
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Helm | Ensure the Flannel binary is available
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Helm | Ensure the Kube-OVN binary is available
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Helm | Ensure the Hybridnet binary is available
⠋ [localhost] skip [0s]
17:59:55 CST [roles/download] Helm | Ensure the localpv Provisioner binary is available
⠸ [localhost] failed [0s]
17:59:55 CST [Playbook default/artifact-export-dr7fh] finish. total: 34,success: 31,ignored: 2,failed: 1
Error: task Helm | Ensure the localpv Provisioner binary is available run failed:
[localhost][executor]: module run failed
[localhost][item=<nil>][0]: exit status 35
task Helm | Ensure the localpv Provisioner binary is available run failed:
[localhost][executor]: module run failed
[localhost][item=<nil>][0]: exit status 35[root@node2 app]#
[root@node2 app]#
以下是离线制品yaml文件内容