Hello,
We do have few endpoints that are too critical to be handled by our monolith app (even if it replicated in k8s).
The issue is a cloud run hostname is not a service, and each ingress rule is expecting a “service” backend.
I just need to forward a certain path in my ingress to the hostname of our cloud run.
PS: I can do that via GCP console and update the load balancer, but this doesn’t seem a good idea as it will be overwritten by k8s
Best regards
apiVersion: networking.k8s.io/v1
kind: Ingress
spec:
defaultBackend:
service:
name: monolith
port:
number: 80
rules:
- http:
paths:
- backend:
REDIRECT_TO: "HOSTNAME_.a.run.app"
path: /serverless
pathType: ImplementationSpecific