VirtualServiceHostNotFoundInGateway

Message NameVirtualServiceHostNotFoundInGateway
Message CodeIST0132
DescriptionHost defined in VirtualService not found in Gateway.
LevelWarning

This message occurs when a host defined in a virtual service is not found in the corresponding gateway.

Example

You will receive this message:

  1. 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.

when your cluster has the following virtual service:

  1. apiVersion: networking.istio.io/v1alpha3
  2. kind: VirtualService
  3. metadata:
  4. name: testing-service
  5. namespace: default
  6. spec:
  7. gateways:
  8. - istio-system/testing-gateway
  9. hosts:
  10. - wrong.com
  11. http:
  12. - match:
  13. - uri:
  14. prefix: /
  15. route:
  16. - destination:
  17. host: ratings

and the following Gateway:

  1. apiVersion: networking.istio.io/v1alpha3
  2. kind: Gateway
  3. metadata:
  4. name: testing-gateway
  5. namespace: istio-system
  6. spec:
  7. selector:
  8. istio: ingressgateway
  9. servers:
  10. - hosts:
  11. - testing.com
  12. port:
  13. name: http
  14. number: 80
  15. protocol: HTTP

In this example, virtual service testing-service has host wrong.com which is not included in the gateway testing-gateway.

How to resolve

Make sure all hosts in a virtual service are included in the hosts of gateways that are bound to the virtual service.