lework/kainstall

安装默认k8s最新版本1.25.2失败kubeadm init failed.

majulong opened this issue · 2 comments

详细日志:
tail -n 1000 /tmp/kainstall.spQxQRt7s8/kainstall.log

[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.
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

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 running Kubernetes containers by using crictl:
- 'crictl --runtime-endpoint unix:///run/containerd/containerd.sock ps -a | grep kube | grep -v pause'
Once you have found the failing container, you can inspect its logs with:
- 'crictl --runtime-endpoint unix:///run/containerd/containerd.sock logs CONTAINERID'
[2022-11-25T09:52:13.163847100+0800]: ERROR: [kubeadm init] 172.30.183.50: kubeadm init failed.
systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/kubelet.service.d
└─10-kubeadm.conf, 11-cgroup.conf
Active: active (running) since Fri 2022-11-25 09:48:13 CST; 17min ago
Docs: https://kubernetes.io/docs/
Process: 5586 ExecStartPre=/bin/bash -c /bin/mkdir -p /sys/fs/cgroup/{cpuset,memory,hugetlb,systemd,pids,"cpu,cpuacct"}/{system,kube,kubepods}.slice||: (code=exited, status=0/SUCCESS)
Main PID: 5590 (kubelet)
Memory: 40.1M
CGroup: /kube.slice/kubelet.service
└─5590 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/conf...

Nov 25 10:06:04 k8s-master-node1 kubelet[5590]: E1125 10:06:04.884308 5590 pod_workers.go:965] "Error syncing pod, skipping" err="failed to "CreatePodSandb...be-system(
Nov 25 10:06:04 k8s-master-node1 kubelet[5590]: E1125 10:06:04.907265 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
Nov 25 10:06:05 k8s-master-node1 kubelet[5590]: E1125 10:06:05.007627 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
Nov 25 10:06:05 k8s-master-node1 kubelet[5590]: E1125 10:06:05.108374 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
Nov 25 10:06:05 k8s-master-node1 kubelet[5590]: E1125 10:06:05.208919 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
Nov 25 10:06:05 k8s-master-node1 kubelet[5590]: E1125 10:06:05.309319 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
Nov 25 10:06:05 k8s-master-node1 kubelet[5590]: E1125 10:06:05.409774 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
Nov 25 10:06:05 k8s-master-node1 kubelet[5590]: E1125 10:06:05.510834 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
Nov 25 10:06:05 k8s-master-node1 kubelet[5590]: E1125 10:06:05.611591 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
Nov 25 10:06:05 k8s-master-node1 kubelet[5590]: E1125 10:06:05.712011 5590 kubelet.go:2448] "Error getting node" err="node "k8s-master-node1" not found"
请帮忙看下是不是不能安装1.25版本

同样卡在这里

1.25.2 新版本去除了一些参数和更换了镜像地址,已修复。