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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章