fix the pushback filter for the global GKE load balancer

This commit is contained in:
Brandon Thomas committed 2023-03-08 15:31:52 -05:00
1 parent de01d0fde7
commit 71abf1caa2
1 file changed
+7 -1
@@ -100,7 +100,13 @@ impl<S> Service<ServiceRequest> for PushbackFilterMiddleware<S>
if !can_bypass_filter {
// Don't kill the load balancer!
can_bypass_filter = req.path().starts_with("/_status");
//
// - `/` is used by the K8s load balancer:
// gcloud compute health-checks describe k8s1-30d9a0ff-storyteller-storyteller-service-8080-0a8fb2fe
//
// - `/_status` is used by the K8s pod scheduler.
//
can_bypass_filter = req.path().starts_with("/_status") || req.path().eq("/");
}
if !can_bypass_filter {