nodeslector使用

本文探讨了Kubernetes中Pod无法调度至Node的问题,详细分析了一例因指定nodeslector及特定配置导致的Pod处于pending状态的情况。通过调整Pod的网络策略,成功解决了调度失败的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题: 

node节点挂了一个, 无法切换到另一个node上


解决:

1、指定了 nodeslector



2、设置了下面:


hostNetwork: true
      dnsPolicy: ClusterFirstWithHostNet


关掉就可以,一般不用这个


报错:

一直处于pending状态

Warning  FailedScheduling  19s (x238 over 20m)  default-scheduler  0/3 nodes are available: 
1 node(s) didn't have free ports for the requested pod ports, 1 node(s) had taints that the pod didn't tolerate, 1 node(s) were not ready,
 1 node(s) were out of disk space.

 

转载于:https://www.cnblogs.com/effortsing/p/10357441.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值