master节点变成node节点,删除不可调度污点
删除污点,让master能运行pod
kubectl taint nodes <node-name> node-role.kubernetes.io/master-
恢复污点
kubectl taint nodes <node-name> node-role.kubernetes.io/master=:NoSchedule
给节点打上role标签
kubectl label nodes <node-name> node-role.kubernetes.io/node=
去除
kubectl label nodes <node-name> node-role.kubernetes.io/node-