<p>I am trying to setup istio for Airflow webservice
My current airflow url is <a href="http://myorg.com:8080/appv1/airflow" rel="nofollow noreferrer">http://myorg.com:8080/appv1/airflow</a> (without istio)</p>

<p>After i tried to integrate with istio i have written the virtual service as given below but i end up getting a 404 Not Found. I am trying to access the url from <a href="http://myorg.com/v1airlfow" rel="nofollow noreferrer">http://myorg.com/v1airlfow</a></p>

<pre><code>---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: airflow-vservice
  namespace: "{{ .Release.Namespace }}"
spec:
  hosts:
  - "*"
  gateways:
  - airflow-gateway
  http:
  - name: airflow-http
    match:
    - uri:
        exact: "/v1airflow"
    - uri:
        exact: "/v1airflow/"
    rewrite:            
      uri: "/appv1/airflow/"
    route:
    - destination:
        host: {{ .Release.Name }}-airflow-web.{{ .Release.Namespace }}.svc.cluster.local
        port:
          number: 8080
    headers:
      request:
        set:
          X-Forwarded-Proto: "http"
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: airflow-gateway
  namespace: "{{ .Release.Namespace }}"
spec:
  selector:
    istio: ingressgateway
  servers:
  - port:
      number: 80
      name: airflow-http
      protocol: HTTP
    hosts:
    - "*"
</code></pre>

<ul>
<li>uri:
    prefix: "/v1airflow"

<ul>
<li>uri:
prefix: "/v1airflow/home"</li>
<li>uri:
prefix: "/v1airflow/static"</li>
<li>uri:
prefix: "/v1airflow/login"</li>
<li>rewrite:
regex: ^/v1airflow/(.*)$</li>
</ul></li>
</ul>

<p>Got it working</p>
