【发布时间】:2022-01-28 17:57:43
【问题描述】:
相当标准的设置
Nginx Ingress,带有外部 IP 当向 IP 发送批量请求(串行)时,大约有一半最终会出错...这里的示例:
$ curl -vI http://my-ip
* Trying my-ip:80...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0* connect to my-ip port 80 failed: Connection refused
* Failed to connect to my-ip port 80: Connection refused
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
* Closing connection 0
curl: (7) Failed to connect to my-ip port 80: Connection refused
另一半及时返回200个状态码。
我可以在 nginx 控制器 pod 日志中看到带有 200 个状态代码的请求,但是我没有看到任何连接被拒绝请求的内容
nginx pod 在整个请求过程中都是健康的,没有崩溃或异常行为。我是直接调用nginx外部IP
nginx ingress-nginx-1636864778-controller LoadBalancer 10.101.134.218 my-ip 80:30892/TCP,443:32566/TCP 74d
如果这些请求甚至没有到达控制器 pod,不确定从哪里继续?
【问题讨论】:
标签: http nginx kubernetes networking routes