mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 21:32:18 +00:00
fix the pushback filter for the global GKE load balancer
This commit is contained in:
1 parent
de01d0fde7
commit
71abf1caa2
1 file changed
+7
-1
+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 {
|
||||
|
||||
Reference in new issue
Block a user