Create and Manage Cloud Resources
Last updated
Last updated
You will use this instance to perform maintenance for the project.
Name the instance nucleus-jumphost.
Use an f1-micro machine type.
Use the default image type (Debian Linux).
The team is building an application that will use a service running on Kubernetes.
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.
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.
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