Curl to Google Compute load balancer gets error 502

前端 未结 2 1645
再見小時候
再見小時候 2021-01-11 19:13

If I curl a POST request with file upload to my google compute load balancer (LB) I get a 502 error. If I do the same curl to the worker node behind the LB, it works

2条回答
  •  攒了一身酷
    2021-01-11 19:43

    Traffic from the load balancer to your instance is not enabled by default. Unfortunately this is not well documented, and really, when you create a load balancer this should happen automatically.

    Try adding this firewall rule the network that your load balancer and VMs are on:

    130.211.0.0/22   tcp:1-5000   Apply to all targets
    

提交回复
热议问题