1、污点的类型介绍
NoSchedule :表示k8s将不会将Pod调度到具有该污点的Node上 PreferNoSchedule :表示k8s将尽量避免将Pod调度到具有该污点的Node上 NoExecute :表示k8s将不会将Pod调度到具有该污点的Node上,同时会将Node上已经存在的Pod驱逐出去
2、设置污点
kubectl taint nodes fat-k8s-worker app/middleware:NoSchedule
3、节点说明中,查找Taints字段
kubectl describe node fat-k8s-worker |grep 'Taints:'
4、去除污点
kubectl taint nodes fat-k8s-worker app/middleware-
标签:Node,kubectl,worker,污点,Pod,k8s
From: https://www.cnblogs.com/linjiangCN/p/16955988.html