Topic 1 Question 4
You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.
Health checks to port 80 on the Compute Engine virtual machine instance are failing and no traffic is sent to your instances. You want to resolve the problem.
Which commands should you run?gcloud compute instances add-access-config ${NAME}-backend-instance-1
gcloud compute instances add-tags ${NAME}-backend-instance-1 --tags http-server
gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --source-ranges 130.211.0.0/22,35.191.0.0/16 --direction INGRESS
gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --destination-ranges 130.211.0.0/22,35.191.0.0/16 --direction EGRESS
ユーザの投票
コメント(6)
C
the source IP ranges for health checks (including legacy health checks if used for HTTP(S) Load Balancing) are:
35.191.0.0/16 130.211.0.0/22
Furthermore it should be direction INGRESS since the health-check (ping) is coming into the load balancer/instance.
source: https://cloud.google.com/load-balancing/docs/health-checks
👍 9gcper2021/02/27I choose C.
👍 3donchick2020/12/26I would say B with predefined http-server tag on instance.
👍 2maleksah2021/01/17
シャッフルモード