如何禁用 istio 就绪探测

How to disable istio readiness probe

我想禁用 istio 就绪探测器在 运行 服务上进行健康检查。有没有办法禁用 http 就绪探测,然后再启用它

重写我的评论作为答案,因为它似乎是解决此问题的有效方法:

您可以将此注释添加到 pods 以禁用对 istio-proxy 容器的探测:

status.sidecar.istio.io/port: "0"

此问题正在 github 上讨论,更多信息:https://github.com/istio/istio/issues/9504#issuecomment-439432130

根据那里的一些评论,当某些 pods 前面没有服务时,或者如果某些端口公开但未声明为 containerPort,或者 [= 之间的某些标签不匹配,可能会发生这种情况24=] 和服务。