首页 > 解决方案 > OpenShift 3.11 - 错误 0/23 个节点可用:16 个节点与节点选择器不匹配,7 个节点没有用于请求的 pod 端口的空闲端口

问题描述

我在 openshift V 3.11 中遇到错误

命名空间事件错误

0/23 nodes are available: 16 node(s) didn't match node selector, 7 node(s) didn't have free ports for the requested pod ports

路由器 pod 错误

E0114 21:53:09.441679       1 limiter.go:137] error reloading router: exit status 1
[WARNING] 013/215308 (54) : Failed to get the number of sockets to be transferred !
[ALERT] 013/215308 (54) : Failed to get the sockets from the old process!

在任何给定时间点,只有一个路由器 pod 存在问题。例如,如果我运行 7 个路由器,则只有 6 个是稳定的,并且一个不断崩溃。如果我将复制更改为 6 5 是稳定的并且 1 不断崩溃..

标签: kubernetesopenshiftokd

解决方案


更新以下内容后问题得到解决。

根据redhat的建议...

Scale down the default router and create a new router using 2 threads:
$ oc scale dc/router --replicas=0
$ oc adm router myrouter --threads=2
--images='openshift3/ose-haproxy-router:v3.x'
Set a new thread count (e.g. 7) for the HAproxy router:
$ oc set env dc/myrouter ROUTER_THREADS=7

根据 RedHat 的建议


推荐阅读