node容忍
AI-摘要
KunKunYu GPT
AI初始化中...
介绍自己
生成本文简介
推荐相关文章
前往主页
前往tianli博客
node容忍
报错信息
[root@master1 test]# kubectl top nodes
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)
查看
[root@master1 test]# kubectl get no -o yaml | grep taint -A 5
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/master
status:
addresses:
- address: 192.168.0.39
--
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/master
status:
addresses:
- address: 192.168.0.46
--
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/master
status:
addresses:
- address: 192.168.0.34
--
taints:
- effect: NoSchedule
key: node.kubernetes.io/unreachable
timeAdded: "2020-05-14T02:56:43Z"
- effect: NoExecute
key: node.kubernetes.io/unreachable
--
taints:
- effect: NoSchedule
key: node.kubernetes.io/unreachable
timeAdded: "2020-05-14T02:56:48Z"
- effect: NoExecute
key: node.kubernetes.io/unreachable
允许master创建nodes
[root@master1 test]# kubectl taint nodes --all node-role.kubernetes.io/master-
node/master1 untainted
node/master2 untainted
node/master3 untainted
taint "node-role.kubernetes.io/master" not found
taint "node-role.kubernetes.io/master" not found
[root@master1 test]# kubectl taint nodes --all node-role.kubernetes.io/master-
node/master1 untainted
node/master2 untainted
node/master3 untainted
删除 taint 规则
kubectl taint node –all node.kubernetes.io:NoSchedule-
- 感谢你赐予我前进的力量
赞赏者名单
因为你们的支持让我意识到写文章的价值🙏
作者编辑不易,如有转载请注明出处。完整转载来自https://wangairui.com 网站名称:猫扑linux
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果