<p>When I deploy without ingress-gateway I can get access via port-forwarding directly to LoadBalancer of application in the browser. But through ingress-gateway it not working.
Sidecars injection is enabled!</p>

<p>Istio v1.4.0<br>
Minukube v1.5.2<br>
Kubernetes v1.16.0  </p>

<p>Istio instalation:</p>

<pre><code>istioctl manifest apply \
  --set values.global.mtls.enabled=false \
  --set values.tracing.enabled=true \
  --set values.kiali.enabled=true \
  --set values.grafana.enabled=true \
--namespace istio-system
</code></pre>

<p>Than deploy React with NGINX.</p>

<pre><code># Frontend service
apiVersion: v1
kind: Service
metadata:
  name: front-web
  namespace: demo
spec:
  type: NodePort
  selector:
    app: front-web
  ports:
    - name: http
      port: 80

---
# Frontend app
apiVersion: apps/v1
kind: Deployment
metadata:
  name: front-web
  namespace: demo
  labels:
    app: front-web
spec:
  replicas: 1
  selector:
    matchLabels:
      app: front-web
  template:
    metadata:
      labels:
        app: front-web
    spec:
      containers:
      - name: front-web
        image: sergeygreat/front-web:v1.0.3
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 80
</code></pre>

<p>Gateway</p>

<pre><code>
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: demo-gw
  namespace: demo
spec:
  selector:
    istio: ingressgateway
  servers:
  - port:
      number: 80
      name: http
      protocol: HTTP
    hosts:
    - "*"
---

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: demo-vs
  namespace: demo
spec:
  hosts:
  - "*"
  gateways:
  - demo-gw
  http:
  - match:
    - uri:
        exact: /
    route:
    - destination:
        port:
          number: 80
        host: front-web.default.svc.cluster.local  # &lt;- tryed just `front-web`, no luck
</code></pre>

<pre><code>&gt;&gt; kubectl get svc -n istio-system

istio-ingressgateway LoadBalancer 10.104.158.110 &lt;pending&gt; 80:31332/TCP,...


</code></pre>

<p>Everything is running but no access via <a href="http://minikube" rel="nofollow noreferrer">http://minikube</a> ip:31332 ???  </p>

<p>For port 80 in browser: <a href="http://minikube_ip" rel="nofollow noreferrer">http://minikube_ip</a> - <code>404 Not Found openresty/1.15.8.2</code><br>
For port 31332 in browser: <a href="http://minikube_ip:31332" rel="nofollow noreferrer">http://minikube_ip:31332</a> - 503 Error  </p>

<blockquote>
  <blockquote>
    <p>minikube ssh</p>
  </blockquote>
</blockquote>

<pre><code>$ curl -i http://localhost:31332
HTTP/1.1 503 Service Unavailable
date: Mon, 16 Dec 2019 16:04:32 GMT
server: istio-envoy
content-length: 0

$ curl -i http://192.168.99.101:31332
HTTP/1.1 503 Service Unavailable
date: Mon, 16 Dec 2019 16:04:45 GMT
server: istio-envoy
content-length: 0
</code></pre>

<p>Can please someone help?</p>

Sergey Kozlovskiy
<p>Try to recreate minikube:</p>

<pre><code>&gt;&gt;minikube stop
&gt;&gt;minikube delete
&gt;&gt;minikube start --memory=16384 --cpus=4 --vm-driver=virtualbox --kubernetes-version=v1.16.0
</code></pre>

<p>If not help try to bind to another port:</p>

<pre><code>- Deployment set to 80
- Service type should be NodePort and bind it to port 8080 targetPort:80
- VirtualService host "*" port 8080
</code></pre>

<p>It should work!       </p>

<p>If not try to remove this part from VirtualService:</p>

<pre><code>- match:
    - uri:
        exact: /
</code></pre>
