ConflictingMeshGatewayVirtualServiceHosts

    • Merge the conflicting virtual services into a single resource.
    • Make the hostnames unique across virtual services attached to a mesh gateway.
    • Scope the resource to a specific namespace by setting the field.

    Examples

    • They are attached to the default “mesh” gateway as no custom gateway is specified.
    • They both define the same host productpage.default.svc.cluster.local.
    1. apiVersion: networking.istio.io/v1alpha3
    2. kind: VirtualService
    3. metadata:
    4. name: productpage
    5. spec:
    6. exportTo:
    7. - "."
    8. hosts:
    9. - productpage.default.svc.cluster.local
    10. http:
    11. - route:
    12. - destination:
    13. host: productpage
    14. ---
    15. apiVersion: networking.istio.io/v1alpha3
    16. metadata:
    17. name: custom
    18. namespace: team-2
    19. spec:
    20. exportTo:
    21. - "."
    22. hosts:
    23. - productpage.default.svc.cluster.local
    24. http:
    25. - route:
    26. - destination:
    27. ---