0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.


使用rancher運行鏡像時報以下錯誤

 

0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.

 

 

是因為默認kubernetes默認不讓pod部署到master節點,但是我在測試環境只有一個節點也是master節點,需要允許master節點部署pod

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

 

如果想要禁止,則執行以下命令

kubectl taint nodes k8s node-role.kubernetes.io/master=true:NoSchedule

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM