问题1:
kubernetes执行kubectl get nodes发生问题:Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
解决方法:
在root用户下执行
export KUBECONFIG=/etc/kubernetes/admin.conf
但是这样会在离开此对话后失效,永久保存需要修改/etc/profile 或 .bashrc,这里我们修改 .bashrc
echo export KUBECONFIG=/etc/kubernetes/kubelet.conf >> ~/.bashrc
source ~/.bashrc
问题2
node节点状态为:Ready,SchedulingDisabled
可执行:kubectl uncordon node-name,即可