1 node(s) had taints that the pod didn't tolerate

1 node(s) had taints that the pod didn’t tolerate

問題描述:

使用kubeadm初始化的集羣,出於安全考慮Pod不會被調度到Master Node上,也就是說Master Node不參與工作負載。

解決方法:

如果報錯 error: taint “node-role.kubernetes.io/master:” 可以會略

kubectl taint nodes --all node-role.kubernetes.io/master-

禁止 master 部署 pod

kubectl taint nodes k8s node-role.kubernetes.io/master=true:NoSchedule
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章