I have a GKE cluster on which I'm testing Google Cloud Run, which also hosts services that are not managed by Cloud Run. To access these, I've set up a simple Gateway and Virtual Service as described here. This Gateway has successfully worked in a GKE cluster in which the Istio add-on was enabled and Cloud Run was not enabled.
It appears that in a cluster with Cloud Run enabled, my custom gateway is ignored, and that all traffic goes through a default gateway called istio-autogenerated-k8s-ingress. I suspect it might be because the default is defined for Hosts: *
.
How can I ensure my gateway for services not managed by Cloud Run takes precedence for the hosts for which it is responsible? Is it safe to edit the autogenerated gateway? Will modifying it break Cloud Run? Will Cloud Run overwrite or modify this file in its normal operation?
VirtualService
for theGateway
? – Crou