You are tasked with deploying a Global External Application Load Balancer in Google Cloud using the `gcloud` CLI to route HTTP traffic to an existing unmanaged instance group `web-ig-us` in `us-central1`. To ensure dependencies are created before their dependent resources, what is the correct sequential order of `gcloud` commands required to provision this infrastructure from the backend up to the global frontend forwarding rule?
- 1Create a global HTTP health check to monitor the health of the backend instances (`gcloud compute health-checks create http ...`).
- 2Create a global backend service specifying HTTP protocol and associating the health check (`gcloud compute backend-services create ...`).
- 3Add the unmanaged instance group `web-ig-us` as a backend to the backend service (`gcloud compute backend-services add-backend ...`).
- 4Create a URL map that routes default incoming requests to the backend service (`gcloud compute url-maps create ...`).
- 5Create a target HTTP proxy that references the URL map (`gcloud compute target-http-proxies create ...`).
- 6Create a global forwarding rule that binds an external IP address and port 80 to the target HTTP proxy (`gcloud compute forwarding-rules create ...`).
Cevap
The correct order of deployment commands from backend dependencies to frontend entry point is: 1) Create global HTTP health check, 2) Create global backend service with health check, 3) Add instance group backend to backend service, 4) Create URL map referencing default backend service, 5) Create target HTTP proxy referencing URL map, and 6) Create global forwarding rule pointing to target proxy.
Deploying a GCP Global External Application Load Balancer via the command-line interface requires a strict bottom-up dependency ordering. First, independent health checks must be provisioned (`gcloud compute health-checks create http`). Second, the global backend service must be created referencing the health check (`gcloud compute backend-services create`). Third, workload backends are added to the service (`gcloud compute backend-services add-backend`). Fourth, the URL map is created to route requests to the backend service (`gcloud compute url-maps create`). Fifth, the target proxy is created referencing the URL map (`gcloud compute target-http-proxies create`). Finally, the global forwarding rule is created pointing public traffic on port 80 to the target HTTP proxy (`gcloud compute forwarding-rules create`).
Adım Adım Çözüm
Anahtar Kavram
Bottom-up CLI deployment ordering for GCP Global External Application Load Balancers