ゲートウェイでVirtualServiceホストが見つかりません

このメッセージは、virtualserviceで定義された`host`が、対応するゲートウェイに見つからない場合に発生します。

このメッセージが表示されるのは

Warning [IST0132] (VirtualService testing-service.default testing.yaml:8) one or more host [wrong.com] defined in VirtualService default/testing-service not found in Gateway istio-system/testing-gateway.

クラスタに次のvirtualserviceがある場合

apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
  name: testing-service
  namespace: default
spec:
  gateways:
  - istio-system/testing-gateway
  hosts:
  - wrong.com
  http:
  - match:
    - uri:
        prefix: /
    route:
    - destination:
        host: ratings

および次のゲートウェイがある場合

apiVersion: networking.istio.io/v1
kind: Gateway
metadata:
  name: testing-gateway
  namespace: istio-system
spec:
  selector:
    istio: ingressgateway
  servers:
  - hosts:
    - testing.com
    port:
      name: http
      number: 80
      protocol: HTTP

この例では、virtualservice `testing-service`のホスト`wrong.com`は、ゲートウェイ`testing-gateway`に含まれていません。

解決方法

virtualserviceのすべての`hosts`が、virtualserviceにバインドされているゲートウェイの`hosts`に含まれていることを確認してください。