0

I deployed istio in my aks cluster using enter link description here, exposed istio sample applications(product_page,)through istio gatewayservice, it worked fine as expected, but when I exposed my service, showing 404 error.

Here is my gateway.yaml

enter image description here

Here is my virtual-service.yaml

enter image description here

  • Hi harish hari, have you tried to use `istioctl analyze `? Istio documentation [link](https://istio.io/latest/docs/ops/diagnostic-tools/istioctl-analyze/). It allows to detect common problems such as lack of sidecar injection in the namespace. – Piotr Malec Feb 09 '22 at 16:45
  • you only exposed the mentioned routes inside the virtualservice and I think you trying to to access / (root URL) which is not exposed. – h8n Feb 11 '22 at 17:11
  • I updated uri: value as regex: /*, it worked fine, thanks – harish hari Feb 22 '22 at 13:44

1 Answers1

1

As mentioned in the comments setting regex value to regex: /* solved the issue in this case.

It is possible to see and inspect what is exposed and what is accessible in the istio ingress by generating the mesh graph using kiali as mentioned on this documentation page.

This is especially useful when working with regex uri match method as it is very easy to mess up the scope of a regex value.

Piotr Malec
  • 3,429
  • 11
  • 16