Im having problems when trying to access webapp frontends through Istio Gateway in minikube. I’ve configured ingress gateway to serve Angular frontend (minikube_ip:31380/home) and to serve React frontend (minikube_ip:31380/app) but when I try to access I get 404 files not found (css, assets, main.js, bundle.js, etc). I’ve tried to change both projects base-href and nothing changed, I continued having the same error.
My Istio-Ingress-Rules:
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: ingress-gateway-configuration
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
kind: VirtualService
apiVersion: networking.istio.io/v1alpha3
metadata:
name: virtual-service
namespace: default
spec:
hosts:
- "*"
gateways:
- ingress-gateway-configuration
http:
- match:
- uri:
prefix: /app
route:
- destination:
host: webapp-service
subset: app
- match:
- uri:
prefix: /home
route:
- destination:
host: webapp-service
subset: home
---
kind: DestinationRule
apiVersion: networking.istio.io/v1alpha3
metadata:
name: destination-rule
namespace: default
spec:
host: webapp-service
subsets:
- labels:
version: home
name: home
- labels:
version: app
name: app
MAIN PROBLEM:
After a week of research, I think that having two webapps with the same service, determined by the Istio Ingress, is impossible or is not implemented yet.
I hope it is not and that have a solution.
Thank you very much everyone in advance.