cloudnativer / kube-install

一键安装k8s(kubernetes):二進位離線方式部署,支持定時安裝、添加與銷毀node、銷毀與修復master、一鍵卸載集羣等。Install k8s (kubernetes): one click offline installation of highly available multiple kubernetes cluster, supports schedule installation, addition of nodes, rebuild of kubernetes master, and uninstallation of clusters.
Apache License 2.0
422 stars 118 forks source link

安装1.24版本失败,CNI插件Cilium,安装页面中显示集群状态为未知 #37

Open hyong-mirrors opened 2 years ago

hyong-mirrors commented 2 years ago

你好!使用V0.8.0版本安装失败。CNI插件Cilium;系统CentOS Linux release 7.9.2009 (Core);内核:4.19.12-1.el7.elrepo.x86_64。 具体错误日志: TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/all : service] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service ufw: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service ufw: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service ufw: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service ufw: host"} ...ignoring

TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/all : service] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service SuSEfirewall2: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service SuSEfirewall2: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service SuSEfirewall2: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service SuSEfirewall2: host"} ...ignoring

TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/runtime : 1.Cleaning up garbage files left in history.] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"} ...ignoring

TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/runtime : service] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service kube-proxy: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service kube-proxy: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service kube-proxy: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service kube-proxy: host"} ...ignoring

TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/runtime : service] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service containerd: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service containerd: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service containerd: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service containerd: host"} ...ignoring 安装页面中显示集群状态为未知,kubectl get node看不到node节点,只有master节点

cloudnativer commented 2 years ago

你好!使用V0.8.0版本安装失败。CNI插件Cilium;系统CentOS Linux release 7.9.2009 (Core);内核:4.19.12-1.el7.elrepo.x86_64。 具体错误日志: TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/all : service] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service ufw: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service ufw: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service ufw: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service ufw: host"} ...ignoring

TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/all : service] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service SuSEfirewall2: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service SuSEfirewall2: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service SuSEfirewall2: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service SuSEfirewall2: host"} ...ignoring

TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/runtime : 1.Cleaning up garbage files left in history.] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service kubelet: host"} ...ignoring

TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/runtime : service] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service kube-proxy: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service kube-proxy: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service kube-proxy: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service kube-proxy: host"} ...ignoring

TASK [/opt/app/kube-install/data/output/k8s-anoncloud/sys/0x0000000000base/runtime : service] *** fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "Could not find the requested service containerd: host"} ...ignoring fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "Could not find the requested service containerd: host"} ...ignoring fatal: [192.168.0.31]: FAILED! => {"changed": false, "msg": "Could not find the requested service containerd: host"} ...ignoring fatal: [192.168.0.30]: FAILED! => {"changed": false, "msg": "Could not find the requested service containerd: host"} ...ignoring

凡是log左下角顯示“ignoring”的話,都是屬於可以忽略的正常日誌。 你截取的均為正常日誌。 如果集羣安裝失敗的話,你可以看看是否有非“ignoring”的錯誤日誌。

cloudnativer commented 2 years ago

kubectl get node看不到node节点,只有master节点

由於kube-install使用的是二進位安裝,所以kubectl get看不到master,你可以使用kubectl get cs來查看master的健康狀態。

kubectl get node看到的就是所有node節點。