Complete the code to create a managed instance group with a named instance template.
gcloud compute instance-groups managed create my-group --template=[1] --size=3 --zone=us-central1-a
The --template flag requires the exact name of the instance template to use for the managed instance group.
Complete the code to update the size of the managed instance group to 5.
gcloud compute instance-groups managed resize my-group --size=[1] --zone=us-central1-aThe --size flag sets the desired number of instances in the managed instance group.
Fix the error in the command to set the autohealing policy for the managed instance group.
gcloud compute instance-groups managed set-autohealing-policies my-group --health-check=[1] --initial-delay=300 --zone=us-central1-a
The --health-check flag requires the exact name of the health check resource.
Fill both blanks to create a managed instance group with autoscaling enabled and set the max number of instances.
gcloud compute instance-groups managed create my-group --template=[1] --size=2 --zone=us-central1-a && gcloud compute instance-groups managed set-autoscaling my-group --max-num-replicas=[2] --zone=us-central1-a
The first blank is the instance template name. The second blank is the maximum number of replicas for autoscaling.
Fill all three blanks to update the instance template, resize the group, and set the autoscaling minimum size.
gcloud compute instance-groups managed rolling-action start-update my-group --version=template=[1] --zone=us-central1-a && gcloud compute instance-groups managed resize my-group --size=[2] --zone=us-central1-a && gcloud compute instance-groups managed set-autoscaling my-group --min-num-replicas=[3] --zone=us-central1-a
The first blank is the new instance template name for the update. The second blank is the new size of the group. The third blank is the minimum number of replicas for autoscaling.