kubernetes - 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 不断崩溃..
解决方案
更新以下内容后问题得到解决。
根据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
推荐阅读
- java - 错误:包 org.apache.lucene.analysis 不存在
- indexing - Google App Engine ndb 简单查询给出 NeedIndexError
- java - 如何使用 avro 在镶木地板文件模式中创建 REPEATED 类型?
- node.js - 在 socket.leave 之后其他用户仍然与我有连接
- javascript - 如何使javascript代码循环重复文本?
- node.js - 我可以在 Jenkins 上运行多个节点版本吗?
- python-3.x - 将 docker flask 部署到 heroku 时出现错误 R10(启动超时)-> Web 进程在启动后 60 秒内无法绑定到 $PORT
- docker - docker 容器是否从主机中选择时间和时区
- tfs - 从 TFS 2013 迁移到 Azure DevOps Server 2019:Pre-prod 与 Prod 迁移
- python - 什么是可视化来自多个数据框列的常见字符串值的好方法?