Google Cloud Load Balancing Challenge Lab
Google Cloud Load Balancing Challenge Lab
export ZONE=us-east1-b
export REGION=us-east1
export PORT=8080
export FIREWALL_NAME=accept-tcp-rule-609
Use the following code to configure the web servers to run nginx. Create a startup.sh
script and include it in the Compute Instance Instance Template.
● Create an instance template. Don't use the default machine type. Make sure you
specify e2-medium as the machine type.
● Add a target pool in the same region as your instances. Run the following to
create the target pool and use the health check, which is required for the service
to function:
*Note: Please check for the Region and Zone assigned in your Lab, because Check
My Progress will look for your resources in specific regions.
● Set up a global static external IP address that your customers use to reach your
load balancer (Part of LB Configuration) [OPTIONAL]
● Create a backend service and add your instance group as the backend to the
backend service group with the named port (http:80).
● Create a URL map, and target the HTTP proxy to route the incoming requests to
the default backend service.
Note: You may need to wait for 10 to 15 minutes to get the score for this task.
Please let us know if we can be of any further help. We will be happy to help you.