查看集群节点

两台工作节点都执行了kubeadm join加入集群之后,到master节点执行命令查看集群节点:

kubectl get nodes NAME STATUS ROLES AGE VERSION master Ready control-plane,master 9m45s v1.21.2 node1 Ready <none> 7m6s v1.21.2 node2 NotReady <none> 98s v1.21.2

NotReady的过几分钟再看就Ready了。