• 安装部署
  • 使用KK命令安装kubesphere v3.3.0报错kubelet.go:2451] node not found"

创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 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已经装完。

麻烦大神们看看,谢谢,已经彻底删除后装了几遍。

[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory “/etc/kubernetes/manifests”. This can take up to 4m0s

[kubelet-check] Initial timeout of 40s passed.

    Unfortunately, an error has occurred:

            timed out waiting for the condition

    This error is likely caused by:

            - The kubelet is not running

            - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)

    If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:

            - 'systemctl status kubelet'

            - 'journalctl -xeu kubelet'

    Additionally, a control plane component may have crashed or exited when started by the container runtime.

    To troubleshoot, list all containers using your preferred container runtimes CLI.

    Here is one example how you may list all Kubernetes containers running in docker:

            - 'docker ps -a | grep kube | grep -v pause'

            Once you have found the failing container, you can inspect its logs with:

            - 'docker logs CONTAINERID'

error execution phase wait-control-plane: couldn’t initialize a Kubernetes cluster

To see the stack trace of this error execute with –v=5 or higher: Process exited with status 1

12:23:28 CST retry: [master1]

    2 年 后