允许master节点部署pod


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

这是因为k8s集群默认不让在master节点创建pod,也就是说Master Node不参与工作负载。

①允许master部署pod

[root@k8s-master nginx]# kubectl taint nodes --all node-role.kubernetes.io/master-
node/k8s-master untainted

②禁止master部署pod

[root@k8s-master]# kubectl taint nodes k8s node-role.kubernetes.io/master=true:NoSchedule

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM