允许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
————————————————
0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 今天创建完集群后,一个pod一直是pending状态,describe pod: 直译意思是节点有了污点无法容忍,...
- keywords 1 node(s) had taints that the pod didn't tolerat...
- k8s启动多个image 指定pod运行的node 问题描述 Kubernetes有着自己特定的调度算法与策略,有...