Create and Manage Cloud Resources
Task 1: Create a project jumphost instance
You will use this instance to perform maintenance for the project.
Requirements:
Name the instance nucleus-jumphost.
Use an f1-micro machine type.
Use the default image type (Debian Linux).
Task 2: Create a Kubernetes service cluster
The team is building an application that will use a service running on Kubernetes.
You need to:
Create a cluster (in the us-east1-b zone) to host the service.
Use the Docker container hello-app (
gcr.io/google-samples/hello-app:2.0
) as a placeholder; the team will replace the container with their own work later.
Expose the app on port 8080.
Task 3: Set up an HTTP load balancer
You will serve the site via nginx web servers, but you want to ensure that the environment is fault-tolerant. Create an HTTP load balancer with a managed instance group of 2 nginx web servers. Use the following code to configure the web servers; the team will replace this with their own configuration later.
You need to:
Create an instance template.
Create a target pool.
Create a managed instance group.
gcloud compute instances list
Create a firewall rule to allow traffic (80/tcp).
gcloud compute forwarding-rules list
Create a health check.
Create a backend service, and attach the managed instance group.
Create a URL map, and target the HTTP proxy to route requests to your URL map.
Create a forwarding rule.
gcloud compute forwarding-rules list
Last updated