允許master節點部署pod

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

異界神域 2020-01-21 11:37:28  1512  已收藏
展開
允許master節點部署pod
kubectl taint nodes --all node-role.kubernetes.io/master-
如果不允許調度
kubectl taint nodes master1 node-role.kubernetes.io/master=:NoSchedule
污點可選參數
      NoSchedule: 一定不能被調度
      PreferNoSchedule: 儘量不要調度
      NoExecute: 不僅不會調度, 還會驅逐Node上已有的Pod
 

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