Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add managed instance group to target pool?

How can an autoscaling managed instance group be added to a target pool?

It's easy enough to add existing instances to a target pool via

$ gcloud compute target-pools create mypool --region us-central1
$ gcloud compute target-pools add-instances mypool \
   --instances existing-instance1 existing-instance2 --zone us-central1-b

However, I want all the instances that appear in my autoscaling group to automatically be added to my target pool.

like image 945
user14717 Avatar asked Sep 06 '25 03:09

user14717


1 Answers

You can use gcloud compute instance-groups managed set-target-pools command to set the target pool for an existing manged instance group. You can refer to this link for more information.

like image 76
Faizan Avatar answered Sep 07 '25 23:09

Faizan