1.查看集群各node的role,为none.
2.为node打label,改变node的role
kubectl --kubeconfig=/etc/kubernetes/kubeconfig label nodes 10...* node-role.kubernetes.io/master=
3.去掉node的role
kubectl --kubeconfig=/etc/kubernetes/kubeconfig label nodes 10...* node-role.kubernetes.io/master-
4.可以k describe node -o yaml 查看nodeyaml文件
集群开启了RBAC认证,别名 k=‘kubectl --kubeconfig=/etc/kubernetes/ssl/kubeconfig’