<p>I have  three service that I need to expose via istio ingress gateway, i have setup those services dns records to point to the ingress gateway load balancer but i have not succeded to make it work.</p>
<p>The gateway and virtual service config file :</p>
<pre><code>apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: test-gateway
spec:
  selector:
    istio: ingressgateway # use istio default controller
  servers:
  - port:
      number: 80
      name: http
      protocol: HTTP
    hosts:
    - &quot;*.mywebsite.io&quot;


    
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: virtualservice
spec:
  hosts:
  - &quot;*.mywebsite.io&quot;
  gateways:
  - test-gateway
  http:
  - name: &quot;api-gateway&quot;
    match:
    - uri:
        exact: &quot;gateway.mywebsite.io&quot;
    route:
      - destination:
           host: gateway.default.svc.cluster.local
           port:
             number: 8080
  - name: &quot;visitor-service&quot;
    match:
    - uri:
        exact: &quot;visitor-service.mywebsite.io&quot;
    route:
      - destination:
           host: visitor-service.default.svc.cluster.local
           port:
             number: 8000
  - name: &quot;auth-service&quot;
    match:
    - uri:
        exact: &quot;auth-service.mywebsite.io&quot;
    route:
      - destination:
           host: auth-service.default.svc.cluster.local
           port:
             number: 3004  

     
</code></pre>

Abdnacer Fried
<p>I guess the URI part of the <a href="https://istio.io/latest/docs/reference/config/networking/virtual-service/#HTTPMatchRequest" rel="noreferrer">HttpMatchRequest</a> does not work that way. Try to add VirtualServices for each subdomain, i.e. something like.</p>
<pre><code>apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: gateway-virtualservice
spec:
  hosts:
  - &quot;gateway.mywebsite.io&quot;
  gateways:
  - test-gateway
  http:
  - name: &quot;api-gateway&quot;
    match:
    - uri:
        exact: &quot;/&quot; #or prefix
    route:
      - destination:
           host: gateway.default.svc.cluster.local
           port:
             number: 8080
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: visitor-virtualservice
spec:
  hosts:
  - &quot;visitor-service.mywebsite.io&quot;
  gateways:
  - test-gateway
  http:
  - name: &quot;visitor-service&quot;
    match:
    - uri:
        exact: &quot;/&quot;
    route:
      - destination:
           host: visitor-service.default.svc.cluster.local
           port:
             number: 8000
</code></pre>
