GatewayPortNotDefinedOnService
当 Gateway(通常是 istio-ingressgateway
)
提供的端口与网关实例关联的 Kubernetes 服务(Service)
定义的端口不匹配时,GatewayPortNotDefinedOnService
消息将会出现。
例如,您的配置定义如下:
在此示例中,因为配置使用了端口 8004
,但默认的 IngressGateway
(名称为 istio-ingressgateway
)只定义了目标端口 15021、8080 和 8443,
所以 GatewayPortNotDefinedOnService
消息出现。
要解决此问题,请更改网关配置以使用工作负载上的有效端口,然后重试。
以下是已更正的示例: