查看污点,可以使用以下命令
kubectl describe nodes k8s-master |grep Taints
Taints: gameble=true:NoSchedule
[root@k8s-master ~]# kubectl describe nodes k8s-node1 | grep Taints
Taints: drunk=true:NoSchedule
[root@k8s-master ~]# kubectl describe nodes k8s-node2 | grep Taints
Taints: smke=true:NoSchedule
删除污点,根据上边命令查出来的污点名来删。
gameble-
gameble就是污点名,后加减号就删掉了
[root@k8s-master ~]# kubectl taint node k8s-master gameble-
node/k8s-master untainted
[root@k8s-master ~]# kubectl taint node k8s-node1 drunk-
node/k8s-node1 untainted
[root@k8s-master ~]# kubectl taint node k8s-node2 smke-
node/k8s-node2 untainted