【发布时间】:2020-05-11 00:06:11
【问题描述】:
我刚刚设置了一个基于 GKE (Google Cloud) 的 Istio Kubernetes 集群,并且在集群中遇到了一些连接问题。
在从外部世界访问外部 ip 时,我从网关收到 503 Service Unavailable
< HTTP/1.1 503 Service Unavailable
< date: Fri, 24 Jan 2020 16:17:27 GMT
< server: istio-envoy
< content-length: 0
值得注意的是,它肯定会击中集群。但是,我不知道下一步该去哪里查看为什么该服务显示不可用。
istioctl proxy-status 给出了这个可能是相关的:
istio-ingressgateway-5599b67bcb-5ztp6.istio-system SYNCED STALE (Never Acknowledged) SYNCED SYNCED istio-pilot-69c7dc4578-mtm8m 1.1.3*
【问题讨论】:
-
来自与您的 pod 一起运行的 ingress gateway pod 和 istio 代理容器的日志
-
我在网关里得到了很多这样的东西...
2020-01-24T15:32:37.124384Z info Envoy proxy is NOT ready: failed retrieving Envoy stats: Get http://127.0.0.1:15000/stats?usedonly: net/http: request canceled (Client.Timeout exceeded while awaiting headers) 2020-01-24T15:32:37.898271Z info Envoy proxy is ready -
代理只是将这个垃圾邮件发送到日志
[2020-01-24 14:29:09.537][12][warning][misc] [external/envoy/source/common/protobuf/utility.cc:174] Using deprecated option 'envoy.api.v2.Listener.use_original_dst' from file lds.proto. This configuration will be removed from Envoy soon. Please see https://www.envoyproxy.io/docs/envoy/latest/intro/deprecated for details. -
两个日志都是信息和警告..我很惊讶没有错误日志
-
是的,我的想法完全正确。有趣的是,即使在访问集群时,我也得到了零日志记录(我希望有所收获)。
标签: networking kubernetes google-kubernetes-engine istio