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
.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: productpage
spec:
exportTo:
- "."
hosts:
- productpage.default.svc.cluster.local
http:
- route:
- destination:
host: productpage
---
apiVersion: networking.istio.io/v1alpha3
metadata:
name: custom
namespace: team-2
spec:
exportTo:
- "."
hosts:
- productpage.default.svc.cluster.local
http:
- route:
- destination:
---