k8s查看污点和删除污点
当不清楚集群中node的污点时,可以用以下命令查看和删除污点。
查看:
kubectl describe nodes k8s-master |grep Taints Taints: gameble=true:NoSchedule [root@k8s-master ~]# kubectl describe nodes k8s-slave1 | grep Taints Taints: drunk=true:NoSchedule [root@k8s-master ~]# kubectl describe nodes k8s-slave2 | 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-slave1 drunk- node/k8s-slave1 untainted [root@k8s-master ~]# kubectl taint node k8s-slave2 smke- node/k8s-slave2 untainted