vps交流

再麻烦帮忙下,kubeadm 加入完了,状态是NotReady 是什么意思


[[email protected] ~]# kubectl get nodes
NAME   STATUS     ROLES           AGE   VERSION
kt1    NotReady   control-plane   38m   v1.25.2
kt2    NotReady   <none>          24s   v1.25.2

子节点加入的时候,日志是下面的,服务器能看到加入进来了,就是没准备,是什么情况。
[preflight] Running pre-flight checks
[preflight] Reading configuration from the cluster…
[preflight] FYI: You can look at this config file with ‘kubectl -n kube-system get cm kubeadm-config -o yaml’
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Starting the kubelet
[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap…

This node has joined the cluster:
* Certificate signing request was sent to apiserver and a response was received.
* The Kubelet was informed of the new secure connection details.

Run ‘kubectl get nodes’ on the control-plane to see this node join the cluster.

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
   执行了这个,
然后systemctl daemon-reload
  后好了。