Helm/Kube错误:查询:无法使用标签进行查询:流错误

huangapple go评论72阅读模式
英文:

Helm/Kube Error: query: failed to query with labels: stream error

问题

有人遇到过helm的类似问题吗?即使使用helm list命令,我也会得到以下错误信息:

查询失败,原因可能是读取响应正文时出现流错误,可能是由于连接关闭引起的。请重试。原始错误:流错误:流ID 3;INTERNAL_ERROR;来自对等方的接收。

英文:

Anyone faced similar issue with helm, even with helm list I get that

query: failed to query with labels: stream error when reading response body, may be caused by closed connection. Please retry. Original error: stream error: stream ID 3; INTERNAL_ERROR; received from peer

答案1

得分: 3

在我的情况下,我发现这是一个超时问题。

以下是我调试和修复问题的方法。

调试:

helm ls --debug

删除旧版本:

kubectl get secrets --all-namespace | grep -i <helm chart的名称>
kubectl delete secret <在这里输入名称>

解决方法:我增加了超时时间,这暂时解决了问题:

helm install <名称> <文件夹> --wait --timeout 10m0s --debug

我相信这个问题的根本原因是apiserver的限流问题,我需要进一步检查以找到缓慢的根本原因。

英文:

In my case I found that it was a timeout issues.

Below are the ways I debuged and fixed the issue.

debug

helm ls --debug

delete older versions

kubectl get secrets --all-namespace | grep -i &lt;name of your helm chart&gt;
kubectl delete secret &lt;name here&gt;

Workaround: I increased the timeout and this helped for now:

helm install &lt;name&gt; &lt;folder&gt; --wait --timeout 10m0s --debug

I believe the root cause of this issue is with the apiserver throttle which, I need to check more to find the root cause for slowness.

huangapple
  • 本文由 发表于 2022年5月17日 01:04:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/72262988.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定