kubectl|kubectl get node error: yaml: line 2: mapping values are not allowed in this context

1,首先检查你的yaml文件
【kubectl|kubectl get node error: yaml: line 2: mapping values are not allowed in this context】2,检查/root/.kube/config 文件是否存在,不在的话肯定是没有kubeadm init

    推荐阅读