Defining an Instance Group for the Compute Engine Instances
Lab Steps
Introduction
Because you need to send balanced traffic to a pool of instances, you need to create a group of instances to send that traffic to. Two instances have been already deployed in your GCP environment. In this lab step, you will create an instance group for the two Compute Engine instances.
Â
Instructions
1. Look in the upper part of the GCP console for the search bar and enter compute engine. Click on Compute Engine:
Â
2. You will be redirected to the dashboard of Compute Engine and you will see the two instances with a name that starts with ca-lab-instance-pool-###:
Â
3. Look at the left side menu and click on Instance groups:
Â
4. Click on CREATE INSTANCE GROUP.
Â
5. Select New unmanaged instance group in the form that is displayed:
Note: You selected this option because the instances created have not been created using an existing template.
Â
6. Fill the form on the left as described (leave the unmentioned fields at their default value):
- Name:Â ca-lab-instance-group
- Description: CloudAcademy instance group
- VM instances: Select both the two instances
Â
7. Click on CREATE.
Â
8. After a few seconds, you will see the new instance group associated with the two instances:
Warning: If the spinner doesn't end, click on the Refresh button.
Â
Summary
In this lab step, you created an instance group for the two Compute Engine instances, so you are now ready to create the load balancer.
Check that the instance group has been created.