設置Kubernetes master可調度pod


默認配置下Kubernetes不會將Pod調度到Master節點。如果希望將k8s-master也當作Node使用,可以執行如下命令:

taint命令說明:

  taint          Update the taints on one or more nodes

kubectl taint node node01 node-role.kubernetes.io/master-

其中k8s-master是主機節點hostname如果要恢復Master Only狀態,執行如下命令:

kubectl taint node node01 node-role.kubernetes.io/master="":NoSchedule


免責聲明!

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



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