1、现象,创建deployment时

2、查看污点

[fedora@k8s-cluster-1-ycmwlao4q5wz-master-0 ~]$ kubectl describe node k8s-cluster-1-ycmwlao4q5wz-minion-0|grep -i taints
Taints:             node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule

如果发现有:NoSchedule,表示该node不能调度

3、取消污点

[fedora@k8s-cluster-1-ycmwlao4q5wz-master-0 ~]$ kubectl taint nodes k8s-cluster-1-ycmwlao4q5wz-minion-0  node.cloudprovider.kubernetes.io/uninitialized-
node/k8s-cluster-1-ycmwlao4q5wz-minion-0 untainted

上面的最后一个 - 表示所有以 uninitialized 开头的,污点都取消掉

 

转载于:https://www.cnblogs.com/boshen-hzb/p/10930771.html

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐