kubectl get node
NAME STATUS ROLES AGE VERSION
192.168.238.82 NotReady <none> 32h v1.12.3
192.168.238.83 NotReady <none> 32h v1.12.3
问题一
notready状态
解决
检查这三个文件,看IP是否有问题
vim /opt/kubernetes/cfg/bootstrap.kubeconfig
vim /opt/kubernetes/cfg/kubelet.kubeconfig
vim /opt/kubernetes/cfg/kube-proxy.kubeconfig
修改后重启kubelet
bash kubelet.sh 192.168.238.82
bash kubelet.sh 192.168.238.83
回到master查看
kubec