Hi I’m trying configure istio + envoy as an ingress controler. I want to use virtual hosts based service redirection, for example:
aaa.domain.com should redirect to cluster service aaa
bbb.domain.com should redirect to cluster service bbb
but it doesn’t work at all.
HTTP gateway configuration is:
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: http-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*.domain.com"
And virtual service configurations looks like bellow:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: "logsvc"
spec:
hosts:
- "aaa.domain.com"
gateways:
- http-gateway
http:
- route:
- destination:
host: "aaa.myclust.svc.cluster.local"
port:
number: 5601
After applying service configuration services are unavailable, istio-envoy returns 404 code. When I tried path based redirection everything seems to be working as expected.
Maybe anyone can help what is wrong with my configuration? I’m using istio 1.4.
Best Regards