78 questions
0
votes
1
answer
328
views
GKE Ingress defaultBackend not working despite healthy pods and correct NEG configuration
I have a GKE Ingress configured with a defaultBackend to handle requests for undefined hosts. The pods are healthy, but the default backend does not respond. Here’s my setup:
Configuration Details
...
2
votes
0
answers
156
views
GCP External LoadBalancer to gRPC backend
I have a backend service that uses the gRPC protocol and runs on a VM. I have also created an instance group and configured the appropriate port for gRPC. After that, I set up an external load ...
0
votes
1
answer
68
views
How to configure autoscaler in managed instance group to autoscale when required?
I have successfully set up a managed instance group and load balancer using the guide available at guide. However, I am encountering an issue where, when I stress the CPU continuously for 5 minutes, ...
0
votes
0
answers
134
views
How to add virtual machines to a zonal neg or an unmanaged instance group
I'm currently trying to deploy a GCP network passthrough load balancer in front of a GKE autopilot cluster using terraform.
As per Google documentation https://cloud.google.com/load-balancing/docs/...
0
votes
0
answers
156
views
gcloud node api for replacing vms in an instance group not working, but equivalent command line action does
I am trying to programmatically replace VMs in my instance group. This gcloud commandline run within the cloud shell successfully replaces the instances:
gcloud compute instance-groups managed rolling-...
0
votes
1
answer
484
views
Traffic distribution inside an GCP instance group
I have a regional instance group with 2 instances serving on port 8000, no autoscaling enabled.
This instance group is the backend of a Global external application load balancer.
The web server on the ...
0
votes
1
answer
205
views
Access a server running in one vm of an instance group from other vms(of same MIG) with a dns name
Created a managed instance group(MIG) with 3 vms
Created an internal load balancer to access this group via DNS [communicating via port 443]
Created DNS entries
There is a jetty server running on port ...
0
votes
1
answer
530
views
Health check never firing for UDP load balancer
I have a load balancer for two VM instances in an instance group that load balances UDP ports 162 and 514. I created a health check for the instance group, but the health check is never firing based ...
0
votes
4
answers
1k
views
Managed Instance Group in Google Cloud stuck in failed state after deletion attempt
A few days ago, I attempted to delete an outdated instance group from the Google Cloud console / online interface, and since then, its been permanently stuck displaying a red circle with an ...
1
vote
1
answer
1k
views
How to effectively perform zonal outage simulation in GCP in regional MIG so that the attached VM rebuilds in the remaining zone during the outage?
Recently our team is trying to perform DR proving exercise on the VMs attached to the regional MIG in a GCP project.
We followed google's documentation(https://cloud.google.com/compute/docs/instance-...
0
votes
0
answers
478
views
Get GCP instance group instances data
Hi I am trying fetch the name and the public IP address of the the compute instances created by google_compute_instance_template using terraform, but I am getting an empty list at the first time read ...
0
votes
1
answer
2k
views
GCE instance get recreated by Instance Group Manager with Reason: Instance eligible for autohealing: instance unhealthy
We have MIG, where only one GCE is present (as our current application does not support auto scaling) , as part of health check policy we use to do TCP on port 22 with 30 sec interval and if ...
0
votes
1
answer
898
views
Apollo studio is not working after running Apollo server with google cloud load balancing
I am unable to connect to my Apollo (graphql) server through Apollo Studio (https://studio.apollographql.com/sandbox/explorer) OR Apollo Client library on frontend. But the server is working fine when ...
1
vote
2
answers
1k
views
Delayed sequential restart of Compute Engine VMs in Managed Instance Groups
I have a Managed Instance Group of Google Compute Engine VMs (based on a template with container deployment on Container-Optimized OS). The MIG is regional (multi-zoned).
I can release an updated ...
1
vote
1
answer
2k
views
Binding the roles/iap.tunnelResourceAccessor role to Google Cloud MIG instances with Terraform
I have created a Google Cloud Compute Engine managed instance group (MIG) in Terraform using the google_compute_instance_template and google_compute_instance_group_manager resources and would like to ...
1
vote
1
answer
980
views
Pulumi on GCP - How to create a Managed Instance Group with Docker Container Instances
I've been attempting to create a managed instance group on GCP which consists of instances that host a custom docker image. However I'm struggling to figure out how to do this with Pulumi.
Reading ...
2
votes
3
answers
1k
views
how to restart instance group via python google cloud library
I am not able to find any code sample or relevant documentation on python library for google cloud
Want to restart managed instance groups all vms via cloud function.
To list instances I am using ...
1
vote
1
answer
626
views
List internal IP addresses of GCE Instance groups
I was trying to automate outputting the Internal IP Addresses of instances that are created as part of Managed Instance groups (MIG) in Google cloud Compute engine. This was the closest documentation ...
0
votes
0
answers
102
views
Instance Groups do not Initate when Existing Disk Attached
First of all this setup is for a proof of concept. The existing disk is ext4 formatted. A total of 4 instance groups created to troubleshoot. The status of 3/4 instance groups has been "Group is ...
0
votes
1
answer
295
views
Specifying Custom Network on Regional Managed Instance Groups on GCP
I am exploring managed instance groups on GCP, and I am trying to create a multi-zone (regional) MIG. However, it always selects the default network, and I don't see any way to change it (I know it ...
3
votes
2
answers
4k
views
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 ...
1
vote
1
answer
454
views
How to View Google Cloud Compute Engine Managed Instance Group, is it a stateful or stateless?
At first when creating a compute engine managed instance group, the form allow to select the instance group type Managed or unmanaged.
Under managed compute engine instance group, we have option to ...
4
votes
1
answer
2k
views
In google cloud platform, can we name the instances in a specific series in instance group?
I'm new to the google cloud platform, I've created an instance group. I want to know that, Is it possible to name the instances of instance group in a specific series?
For eg. :
my-GCP-instance-001,
...
1
vote
2
answers
1k
views
How do I get instance-group name from inside of a GCE instance?
This command gives me the instance name:
curl -X GET http://metadata.google.internal/computeMetadata/v1/instance/name -H 'Metadata-Flavor: Google'
This command gives me the instance zone:
curl -X GET ...
0
votes
0
answers
77
views
i want to know the right usage of gce instance group
[what happened]
I am using GCP's instance-group, load-balancer, and cloudDNS.
I installed nginx and deployed tomcat app into the
instance that was created when i first assigned empty instance-template ...
0
votes
1
answer
120
views
google cloud Stackdriver Metrics to scale an Manage instance group - Regional
What are the Stackdriver Metrics we can use to autoscale Regional Manage instance groups ? When i check the docs it says Regional managed instance groups do not support filtering for per-instance ...
4
votes
3
answers
2k
views
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 ...
1
vote
1
answer
975
views
Google Cloud Instance Group Autoscaler can not see my custom log-based metric
In google cloud I created a custom log-based metric to use for my instance group autoscaler. I can view the metric in the metrics explorer. The metrics explorer clearly shows that google added the ...
0
votes
1
answer
2k
views
Unable to communicate between 2 GCP instance in the same instance group
i have created 3 instance in a GCP instance group with the same VPC. I am trying to move files between them using scp however it is not working. Neither gets any output nor any error message. I have ...
0
votes
1
answer
576
views
Alpha access to instance group method
I need to create one new instance in a Managed Instance Group in Google Cloud. But I want to set the name on creation, there is a new function in the SDK to do that - but that is an Alpha-function.
...
0
votes
1
answer
376
views
How to scale Instance Group basing on the number of instances inside another instance group
How to setup GCE autoscaling for instance group basing on the amount of running VMs in another instance group.
I have 'main-instance-group' with its own scaling policies. I want the second instance ...
0
votes
1
answer
2k
views
GCE: Health check for an unmanaged instance group or a single instance?
is it possible to create a health check for an individual instance (GCE), which is not part of any instance group?
If I look at adding it to a "unmanaged instance group", is it then possible to ...
5
votes
1
answer
2k
views
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 ...
1
vote
1
answer
140
views
How to specify a container id on managed instance groups
When accessing an instance from a managed instance group on GCE, the deployed app container has a random container id (like c948a5850b6c) instead of a named one (like app).
Is there a way to specify ...
2
votes
2
answers
853
views
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 ...
0
votes
2
answers
477
views
Instance Group won't create an instance with GPU: Not enough resources
I'm able to create an instance with NVIDIA-K80 manually, however my instance group shows a warning on the instance:
Instance 'instance-6lqk' creation failed: The zone 'projects/my-project/zones/us-...
0
votes
1
answer
166
views
Google Cloud Platform: Using VPC with managed instance groups
In the last two weeks I had huge problems with Google Cloud Platform. Restarting the server resulted very very often in:
"Starting VM instance "foobar-controller" failed. Error: The zone
'...
0
votes
1
answer
524
views
Hosting a web app using GCE managed instance groups
I have NGINX setup on Google Cloud Compute Engine using a managed instance group setup [powered by managed instance templates].
I simulated a cpu load on one of the servers and that spawned a couple ...
1
vote
0
answers
48
views
Why is GCE image/instance group performing more slowly than a single instance?
I installed wordpress on a single instance. (NGINX, Wordpress & Redis). Then created an instance group for that single instance.
I made an image of that instance, then made an instance template. ...
1
vote
1
answer
237
views
Autoscaling GCE Instance groups based on multiple Cloud pub/sub queues
I found in the docs to autoscale based on number of undelivered messages in a topic. (Autoscaling GCE Instance groups based on Cloud pub/sub queue).
I want to know if the following scenario is ...
1
vote
1
answer
550
views
Why would GCE instance group manager recreate a VM?
The recreated VM instance got assigned a new external IP and caused other issues(e.g. couldn't connect to remote servers because the new IP was not being whitelisted...)
Why would the instance group ...
0
votes
1
answer
990
views
Creating Instance Group Manager fails without Editor role on service account
I've got a node.js application trying to create an Instance Group Manager. It's running on an instance with a service account attached to the instance with scopes compute-rw and cloud-platform. This ...
0
votes
1
answer
86
views
Google Compute Engine, Managed Instance Group, Autoscaler with custom metric wrtitten from App Engine
I want to use the Autoscaler for Managed Instance Groups with a custom metric I write to from App Engine.
However the Autoscaler documentation states:
The standard metric must contain data for a ...
2
votes
0
answers
1k
views
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" {
...
2
votes
1
answer
498
views
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 ...
1
vote
1
answer
602
views
What is the kill behaviour for resizing an instance group in Google Cloud Platform?
If I have an instance group with 10 machines and I resize the instance group to 9 machines. What determines which instance will go down? Is it FIFO, LIFO, RANDOM? Is it possible to configure this ...
2
votes
1
answer
910
views
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 ...
5
votes
1
answer
4k
views
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 ...
1
vote
2
answers
3k
views
How to delete an instance group from Google Cloud Compute for all zones
I need to create a script that deletes instance groups from Google Cloud Platform.
This group can be in any zone.
When I run command:
gcloud compute instance-groups managed delete [instance-group-...
0
votes
1
answer
372
views
Installation of software to all instances in instance group
After creating an instance group, I started installing software (such as boost) to the first instance in the group. But I do not want to repeat the whole installation process (copy files from local pc,...