k8s添加和更改node的roles
1.查看集群各node的role,为none.2.为node打label,改变node的rolekubectl --kubeconfig=/etc/kubernetes/kubeconfiglabel nodes 10...*node-role.kubernetes.io/master=3.去掉node的rolekubectl --kubeconfig=/etc/kubernetes/kubeco
·
1.查看集群各node的roles,为none
2.为node打label,改变node的roles
kubectl --kubeconfig=/etc/kubernetes/kubeconfig label nodes 10...* node-role.kubernetes.io/master=
3.去掉node的roles
kubectl --kubeconfig=/etc/kubernetes/kubeconfig label nodes 10...* node-role.kubernetes.io/master-
4.可以k describe node 查看node的yaml文件
k get nodes
集群开启了RBAC认证,别名 k=‘kubectl --kubeconfig=/etc/kubernetes/ssl/kubeconfig’
更多推荐
已为社区贡献3条内容
所有评论(0)