UnknownDestinationRuleHost
This message occurs when the host of a DestinationRule does not match a service in the mesh.
The service can be a Kubernetes Service or a host in a ServiceEntry.
An example
Consider this DestinationRule, when there is no reveiws service:
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata:
name: reviews
spec:
host: reveiwsYou will receive this message:
Warning [IST0174] (DestinationRule default/reviews) The host reveiws defined in the DestinationRule does not match any services in the mesh.How to resolve
- Make sure that the host is spelled correctly.
- If the service is in a different namespace, use the fully qualified name of the host, for
example
reviews.bookinfo.svc.cluster.local. - Make sure that the
exportTofield of the service makes it visible to the namespace of theDestinationRule. - If the host is outside the mesh, create a
ServiceEntryfor it.