an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding

what 发表于: 2024-01-17   最后更新时间: 2024-01-17 17:58:55   483 游览

我执行CronJob:

kubectl get pods -n kube-backup -w

处理的时间比较长,突然报了如下错误:

STATUS                       REASON          MESSAGE
Failure                      InternalError   an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding

请问是什么原因,我该如何解决?

发表于 2024-01-17
添加评论

具体地说,意思是客户端与服务器之间的HTTP/2连接丢失,导致无法解码来自event -w的监听事件。
几种可能:网络问题、防火墙、版本、或者是安全策略、或者是负载过高导致的。

你的答案

查看kubernetes相关的其他问题或提一个您自己的问题