istio因“无法检查应用程序端口”而失败

时间:2019-09-02 17:13:16

标签: kubernetes istio

在GKE上使用istio 1.0.2kubernetes 1.12

部署Web应用程序时,窗格永远不会达到正常状态。

我的主豆荚吐出健康的日志。

但是,我的挎包,即istio-proxy容器显示为:

* failed checking application ports. listeners="0.0.0.0:15090","10.8.48.10:53","10.8.63.194:15443","10.8.63.194:443","10.8.58.47:15011","10.8.54.249:42422","10.8.48.44:443","10.8.58.10:44134","10.8.54.34:443","10.8.63.194:15020","10.8.49.250:8080","10.8.63.194:31400","10.8.63.194:15029","10.8.63.194:15030","10.8.60.185:11211","10.8.49.0:53","10.8.61.194:443","10.8.48.1:443","10.8.48.180:80","10.8.51.133:443","10.8.63.194:15031","10.8.63.194:15032","0.0.0.0:9901","0.0.0.0:9090","0.0.0.0:80","0.0.0.0:3000","0.0.0.0:8060","0.0.0.0:15010","0.0.0.0:8080","0.0.0.0:20001","0.0.0.0:7979","0.0.0.0:9091","0.0.0.0:9411","0.0.0.0:15004","0.0.0.0:15014","0.0.0.0:3030","10.8.33.8:15020","0.0.0.0:15001"
* envoy missing listener for inbound application port: 5000

5000确实我的Web应用程序正在监听的端口。

有什么建议吗?

2 个答案:

答案 0 :(得分:0)

如果部署端口和服务端口之间不匹配,则可能会导致与Sidecar的就绪情况结合在一起出现一些问题。

像这样在您的部署中添加注释readiness.status.sidecar.istio.io/applicationPorts:

annotations:
    readiness.status.sidecar.istio.io/applicationPorts: "5000"

您可以使用逗号分隔来添加多个端口。

答案 1 :(得分:0)

@mkrobi通过添加以下内容,我按照this post的建议进行了工作-

readinessProbe:
  httpGet:
    path: /
    port: 8080
    scheme: HTTP

到我的containers中的deployment。确保将端口8080更改为5000