kubernetes常見錯誤問題及解決辦法


參考地址:https://blog.csdn.net/CEVERY/article/details/109104447

問題一
Warning FailedScheduling 54s default-scheduler 0/1 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate
使用kubeadm初始化的集群,出於安全考慮Pod不會被調度到Master Node上,不參與工作負載。允許master節點部署pod即可解決問題,命令如下:

kubectl taint nodes --all node-role.kubernetes.io/master-
補充點(禁止master部署pod命令):

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


問題二:節點初始化報錯
[ERROR FileContent–proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1
使用命令如下解決:

echo 1 > /proc/sys/net/ipv4/ip_forward
問題三:節點資源不足導致的問題
FailedScheduling 55s (x4 over 3m28s) default-scheduler 0/3 nodes are available: 3 Insufficient cpu

節點4c8g規格,創建副本兩個且資源限制2000m時候出現問題,修改成1000m或修改副本等方式小時4000m即可解決

 


免責聲明!

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



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