Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Ingress (GCP Load balancer) - how do I set different request timeouts per route

Hi,

Is there a way to set different request timeouts per route for a GCP Loadbalancer (created via a kubernetes ingress) ?  These routes would go to the same backend service(s).

Thanks

Solved Solved
0 1 1,697
1 ACCEPTED SOLUTION

As far as I can see, no. You can configure the backend service timeout via a BackendConfig, and you can attach a BackendConfig to a specific service, or to individual ports defined on a service. Since the BackendConfig to use is a property of the service, and not the ingress (which uses FrontendConfig in a similar way), it has no way to take the route into account. You would either need separate services or ports for each route.

View solution in original post

1 REPLY 1

As far as I can see, no. You can configure the backend service timeout via a BackendConfig, and you can attach a BackendConfig to a specific service, or to individual ports defined on a service. Since the BackendConfig to use is a property of the service, and not the ingress (which uses FrontendConfig in a similar way), it has no way to take the route into account. You would either need separate services or ports for each route.

Top Labels in this Space