创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
KubeSphere版本信息
例如:v2.1.1/v3.0.0。离线安装还是在线安装。在已有K8s上安装还是使用kk安装。
问题是什么
在安装到 “[InitKubernetesModule] Init cluster using kubeadm” 过不去了,貌似kubelet不能初始化。
systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Sun 2022-07-03 09:31:01 CST; 2min 18s ago
Docs: http://kubernetes.io/docs/
Main PID: 8082 (kubelet)
Tasks: 12
Memory: 35.2M
CGroup: /system.slice/kubelet.service
└─8082 /usr/local/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=systemd --network-pl...
Jul 03 09:33:18 master1 kubelet[8082]: E0703 09:33:18.647153 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:18 master1 kubelet[8082]: E0703 09:33:18.747274 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:18 master1 kubelet[8082]: E0703 09:33:18.847356 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:18 master1 kubelet[8082]: E0703 09:33:18.947447 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:19 master1 kubelet[8082]: E0703 09:33:19.047541 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:19 master1 kubelet[8082]: E0703 09:33:19.147603 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:19 master1 kubelet[8082]: E0703 09:33:19.247731 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:19 master1 kubelet[8082]: E0703 09:33:19.347798 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:19 master1 kubelet[8082]: E0703 09:33:19.447884 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
Jul 03 09:33:19 master1 kubelet[8082]: E0703 09:33:19.547965 8082 kubelet.go:2451] “Error getting node” err="node \“master1\” not found"
config_sample.yaml 用的是docker
kubernetes:
version: v1.22.10
clusterName: cluster.local
autoRenewCerts: true
containerManager: docker
LB的vip可以ping通,haproxy/keepalived已经装完。
麻烦大神们看看,谢谢,已经彻底删除后装了几遍。