Questions tagged [gce-instance-group]

GCE Instance Group and Managed Instance Group (MIG, InstanceGroupManager)

Official documentation

71 questions
12
votes
1 answer

Google Container clusters VS Managed Instance groups

I'm surveying the google cloud tools that could be used to: deploy and update a micro-service shaped application. So far I focused my attention on two solutions: (a) Container clusters; (b) Managed Instance groups plus autoscaler. Could you please…
7
votes
1 answer

How do I configure managed instance group and autoscaling in Google Cloud Platform

Autoscaling helps you to automatically add or remove compute engines based on the load. The prerequisites to autoscaling in GCP are instance template and managed instance group. This question is a part of another question's answer, which is about…
5
votes
1 answer

Bug in GCP: Unable to change instance template for instance group

I am trying to set a new template for an GKE instance group as proposed by this tutorial, but getting the following error: I copied an existing template, just modified a label on it, saved it and then run: $ gcloud compute instance-groups managed…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
5
votes
1 answer

How to set environment variables on the VMs at managed instance group level

We are using queue based managed instance scaling. We need to setup environment variables on the VMs by instance-groups (so that same VM image can be used to subscribe to different queues in different instance-groups). I don’t see the option to…
4
votes
3 answers

GCE Managed Instance Group - static IP address for outbound server requests

Is it possible to set up a static IP address or range of IPs for server requests to external dbs and web services? We have a web app running on Google Compute Engine managed instance group. We want to lock down access to our db to specific IP…
4
votes
2 answers

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…
user14717
  • 4,757
  • 2
  • 44
  • 68
3
votes
2 answers

GCP managed instance group won't scale to zero

I have a GCP managed instance group that I want to scale out and in between 0 and 1 instances using a cron schedule. GCP has a limitation that says: Scaling schedules can only be used for MIGs that have at least one other type of autoscaling…
3
votes
1 answer

Creating an instance template in Google Cloud Platform

Instance template is essential for creating managed instance group. In fact, Managed instance group is essential for creating an autoscaling group in GCP. This question is a part of another question's answer, which is about building an autoscaled…
3
votes
3 answers

Autoscaling GCE Instance groups based on Cloud pub/sub queue

Can GCE Instance groups be scaled up/down bases on Google Cloud PubSub queue counts or other asynchronous task queues such as PSQ?
TimK
  • 819
  • 1
  • 10
  • 22
3
votes
1 answer

What is the difference between an Instance and an Instance group

I was wondering what the difference between an instance and an instance group are. Can anyone explain the difference to me? Why can we use Autoscaler with an instance group and not with a instance
2
votes
2 answers

Resizing instance groups by schedule

I have kubernetes cluster that contains two node pools. I have a task to automate resizing node pools to 0 nodes on weekends to save the money. I know that I can stop the compute instances by standard schedule. But I can't stop the instances that…
2
votes
0 answers

Creating a Google compute instance group give me errors with terraform but is created

I am trying to add all the master VM instance on GCS in to a Google compute instance group via Terraform. This is the code snipit that I use. resource "google_compute_instance_group" "masters" { name = "master-api" description = "Master…
2
votes
1 answer

How to get external IPs of specific instance group on GCE - Google Compute Engine?

$ gcloud --format="value(networkInterfaces[0].accessConfigs[0].natIP)" compute instances list This command currently works to get ALL the ips that are active but if I have multiple instance groups lets say one is called: Office, and the other is…
Ray Chen
  • 37
  • 2
  • 12
2
votes
1 answer

how can I edit the instance suffix in an instances group?

My Instances Group automatically add a random suffix to my instances. I would like to change the instances names or the suffixes in an instances group of GCP. I would prefer a numbered suffix. Is it possible to do that? Screenshot of my Google…
2
votes
1 answer

Why do I have to create a new instance template just to do a minor update to my instance group?

Say I want to update the server for a running instance group, I have to create a new image from another instance and then create an instance template from that image and then run a rolling update on the instance group. That's an a lot of steps to do…
spracketchip
  • 850
  • 2
  • 10
  • 18
1
2 3 4 5