创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
发帖前请点击 发表主题 右边的 预览() 按钮,确保帖子格式正确。
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
Kubernetes版本信息
例如:v18.6。单节点还是多节点。
容器运行时
例如,使用 docker/containerd,版本多少
KubeSphere版本信息
例如:v2.1.1/v3.0.0。离线安装还是在线安装。已有K8s安装还是全套安装。
问题是什么
报错日志是什么,最好有截图。
rocky linux 9.3
1.不选择依赖,报执行文件不存在
./kk create cluster -f ksp-v341-v1228-offline.yaml -a k8s.tar.gz –skip-push-images
10:17:53 CST success: [ksp-master-2]
10:17:53 CST success: [ksp-master-3]
10:17:53 CST success: [ksp-master-1]
10:17:53 CST success: [ksp-registry]
10:17:53 CST [ConfigureOSModule] configure the ntp server for each node
10:17:53 CST skipped: [ksp-registry]
10:17:53 CST skipped: [ksp-master-1]
10:17:53 CST skipped: [ksp-master-2]
10:17:53 CST skipped: [ksp-master-3]
10:17:53 CST [KubernetesStatusModule] Get kubernetes cluster status
10:17:53 CST stdout: [ksp-master-1]
v1.17.4
10:17:53 CST stdout: [ksp-master-1]
/bin/bash:行1: /usr/local/bin/kubectl: 没有那个文件或目录
10:17:53 CST message: [ksp-master-1]
get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
/bin/bash:行1: /usr/local/bin/kubectl: 没有那个文件或目录: Process exited with status 127
10:17:53 CST retry: [ksp-master-1]
10:17:58 CST stdout: [ksp-master-1]
v1.17.4
10:17:58 CST stdout: [ksp-master-1]
/bin/bash:行1: /usr/local/bin/kubectl: 没有那个文件或目录
10:17:58 CST message: [ksp-master-1]
get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
/bin/bash:行1: /usr/local/bin/kubectl: 没有那个文件或目录: Process exited with status 127
10:17:58 CST retry: [ksp-master-1]
10:18:04 CST stdout: [ksp-master-1]
v1.17.4
10:18:04 CST stdout: [ksp-master-1]
/bin/bash:行1: /usr/local/bin/kubectl: 没有那个文件或目录
10:18:04 CST message: [ksp-master-1]
get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
/bin/bash:行1: /usr/local/bin/kubectl: 没有那个文件或目录: Process exited with status 127
10:18:04 CST failed: [ksp-master-1]
10:18:04 CST success: [ksp-master-2]
10:18:04 CST success: [ksp-master-3]
error: Pipeline[CreateClusterPipeline] execute failed: Module[KubernetesStatusModule] exec failed:
failed: [ksp-master-1] [GetClusterStatus] exec failed after 3 retries: get kubernetes cluster info failed: Failed to exec command: sudo -E /bin/bash -c “/usr/local/bin/kubectl –no-headers=true get nodes -o custom-columns=:metadata.name,:status.nodeInfo.kubeletVersion,:status.addresses”
/bin/bash:行1: /usr/local/bin/kubectl: 没有那个文件或目录: Process exited with status 127
选择依赖,报装不上,可是centos不需要装这个
./kk create cluster -f ksp-v341-v1228-offline.yaml -a k8s.tar.gz –skip-push-images –with-packages
10:16:37 CST success: [ksp-master-3]
10:16:37 CST success: [ksp-registry]
10:16:37 CST success: [ksp-master-2]
10:16:37 CST success: [ksp-master-1]
10:16:37 CST [RepositoryModule] Install packages
10:16:37 CST stdout: [ksp-master-3]
5 个文件已删除
rpms-local 108 MB/s | 363 kB 00:00
元数据缓存已建立。
10:16:37 CST stdout: [ksp-master-2]
5 个文件已删除
rpms-local 121 MB/s | 363 kB 00:00
元数据缓存已建立。
10:16:37 CST stdout: [ksp-registry]
5 个文件已删除
rpms-local 118 MB/s | 363 kB 00:00
元数据缓存已建立。
10:16:37 CST stdout: [ksp-master-1]
5 个文件已删除
rpms-local 114 MB/s | 363 kB 00:00
元数据缓存已建立。
10:16:38 CST stdout: [ksp-master-3]
上次元数据过期检查:0:00:01 前,执行于 2024年05月29日 星期三 10时16分37秒。
软件包 tar-2:1.34-6.el9_1.x86_64 已安装。
软件包 openssl-1:3.0.7-27.el9.x86_64 已安装。
软件包 socat-1.7.4.1-5.el9.x86_64 已安装。
软件包 conntrack-tools-1.4.7-2.el9.x86_64 已安装。
软件包 ipset-7.11-8.el9.x86_64 已安装。
软件包 chrony-4.5-1.el9.x86_64 已安装。
软件包 ipvsadm-1.31-6.el9.x86_64 已安装。
依赖关系解决。
软件包 架构 版本 仓库 大小
安装:
ebtables x86_64 2.0.10-16.el7 base-local 123 k
事务概要
安装 1 软件包
总计:123 k
安装大小:343 k
下载软件包:
运行事务检查
事务检查成功。
运行事务测试
错误:事务测试失败:
file /etc/ethertypes from install of ebtables-2.0.10-16.el7.x86_64 conflicts with file from package setup-2.13.7-9.el9.noarch
10:16:38 CST message: [ksp-master-3]
install repository package failed: Failed to exec command: sudo -E /bin/bash -c “yum install -y tar openssl socat conntrack ipset ebtables chrony ipvsadm”
上次元数据过期检查:0:00:01 前,执行于 2024年05月29日 星期三 10时16分37秒。
软件包 tar-2:1.34-6.el9_1.x86_64 已安装。
软件包 openssl-1:3.0.7-27.el9.x86_64 已安装。
软件包 socat-1.7.4.1-5.el9.x86_64 已安装。
软件包 conntrack-tools-1.4.7-2.el9.x86_64 已安装。
软件包 ipset-7.11-8.el9.x86_64 已安装。
软件包 chrony-4.5-1.el9.x86_64 已安装。
软件包 ipvsadm-1.31-6.el9.x86_64 已安装。
依赖关系解决。
软件包 架构 版本 仓库 大小
安装:
ebtables x86_64 2.0.10-16.el7 base-local 123 k
事务概要
安装 1 软件包
总计:123 k
安装大小:343 k
下载软件包:
运行事务检查
事务检查成功。
运行事务测试
错误:事务测试失败:
file /etc/ethertypes from install of ebtables-2.0.10-16.el7.x86_64 conflicts with file from package setup-2.13.7-9.el9.noarch: Process exited with status 1
10:16:38 CST stdout: [ksp-master-2]
上次元数据过期检查:0:00:01 前,执行于 2024年05月29日 星期三 10时16分38秒。
软件包 tar-2:1.34-6.el9_1.x86_64 已安装。
软件包 openssl-1:3.0.7-27.el9.x86_64 已安装。
软件包 socat-1.7.4.1-5.el9.x86_64 已安装。
软件包 conntrack-tools-1.4.7-2.el9.x86_64 已安装。
软件包 ipset-7.11-8.el9.x86_64 已安装。
软件包 chrony-4.5-1.el9.x86_64 已安装。
软件包 ipvsadm-1.31-6.el9.x86_64 已安装。
依赖关系解决。
软件包 架构 版本 仓库 大小
安装:
ebtables x86_64 2.0.10-16.el7 base-local 123 k
事务概要
安装 1 软件包