istio: VirtualService rewrite to the root url istio: VirtualService rewrite to the root url kubernetes kubernetes

istio: VirtualService rewrite to the root url


There is a github issue about this.

The simplest fix is to add whitespace in the uri as long as You are not running .net core application.

    rewrite:      uri: " "

Other workaround can be found here,

Hope it helps.


another way of doing this is:

    - match:        - uri:            prefix: "/v2/my-service/"        - uri:            exact: "/v2/my-service"      rewrite:        uri: "/"      route:        - destination:            host: my-internal-service            port:              number: 6666