fix test lint (#13925)

This commit is contained in:
Xiaopeng Han 2023-09-25 15:33:35 +08:00 committed by GitHub
parent 51d4b1657e
commit e9c8d8bc3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 43 deletions

View File

@ -1,43 +0,0 @@
---
title: GatewayPortNotOnWorkload
layout: analysis-message
owner: istio/wg-user-experience-maintainers
test: no
---
This message occurs when a gateway (usually `istio-ingressgateway`) offers a
port that the Kubernetes service workload selected by the gateway does not.
For example, your Istio configuration contains these values:
{{< text yaml >}}
# Gateway with bogus port
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: httpbin-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
- port:
number: 8004
name: http2
protocol: HTTP
hosts:
- "*"
{{< /text >}}
In this example, the `GatewayPortNotOnWorkload` message occurs because this
configuration uses port 8004, but a default `IngressGateway` is only open on ports
80, 443, 31400, and 15443.
To resolve this problem, change your gateway configuration to use a valid port
on the workload and try again.