Questions tagged [google-compute-engine]

Google Compute Engine (GCE) is Google's offering for Infrastructure-as-a-Service(IaaS) model.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

How to figure out optimum location for server for least latency to a target service?

Given a service URL / IP, how can we find the optimum location to spin up a server at? I suppose generally if we assume the service is on AWS, google cloud or azure, setting up the server in the same ...
user avatar
  • 103
0 votes
0 answers
11 views

Cloud Run not connect in VM Google

I have a question and problem regarding GCloud services and I'm not finding a solution: I created a serverless with Cloud Run from Google, uploaded my application and everything went fine. My problem ...
user avatar
0 votes
0 answers
12 views

How do I determine the patch level in google container optimized os

In google Container Optimized OS (cos) there is an auto-upgrade mechanism (doc) Container-Optimized OS uses an active-passive root partition scheme. The OS image is updated in its entirety, including ...
user avatar
  • 101
0 votes
0 answers
30 views

Is it possible to block project-wide SSH keys for VMs at project level in GCP?

I need to implement block project-wide SSH keys for VMs at project level in GCP? I can see it can be done on individual nodes, but not for stuff like dataproc or gke nodes/group, or any GCP managed ...
user avatar
3 votes
2 answers
253 views

Can we use Ansible for monitoring configuration?

I understand how Ansible works and what it is used for. However, I was wondering if there is a way or feature (in open-source or enterprise edition) in Ansible using which, we can make sure that the ...
user avatar
0 votes
1 answer
737 views

Use Terraform to manage ssh-keys in GCE

I use Terrafrom and manage access to VMs in GCE by changing VM metadata. Before I put it to string, but it not good, so I try to put them to variable and use it. But I faced problem. This is my code: ...
user avatar
2 votes
1 answer
392 views

GKE - GPU nvidia - cuda drivers dont work [closed]

I have setup a kubernetes node with a Nvidia Tesla k80 and followed this tutorial to try to run a pytorch docker image with Nvidia drivers and CUDA drivers working. I have managed to install the ...
user avatar
2 votes
1 answer
533 views

GCP - Can't create a tpu on europe-west1

I'my trying to create a tpu for my vm instance from this tutorial but get this error message: ERROR: (gcloud.compute.tpus.create) PERMISSION_DENIED: Location europe-west1-b is not found or access is ...
user avatar
1 vote
0 answers
40 views

Google cloud container running 40x slower then on aws [closed]

i have a flask api tunning a pytorch predict inside a kubernetes cluster. I deployed it on AWS and got good results. I have tried on GKE and had good results, but when im deploying my pods on a high ...
user avatar
1 vote
3 answers
2k views

Service account permissions error when provisioning instance group from template

I'm trying to create a GCE Instance Group Manager using terraform resource "google_compute_region_instance_group_manager" "frontend_group_manager" { name = "frontend-igm" base_instance_name = "...
user avatar
2 votes
1 answer
42 views

How to create a preemptable docker container?

Is there any way by which I can set a lifetime for a container after that much of time it should be stopped automatically and only awake when someone send a request. I wanted something like ...
user avatar
  • 186
2 votes
2 answers
1k views

Why am I unable to push docker image in gce (gcr.io)?

I created a new VM instance on my GCE compute engine (I have Owner permissions). On that instance, I installed git, docker, and gcloud - everything is done under sudo su. I was hoping I can use that ...
user avatar
  • 185
2 votes
1 answer
452 views

Autoscaling with Kubernetes daemonset

I have a Kubernetes cluster running on Google Compute Engine. My program uses stateful connections, so I do not want my pods being moved between nodes. Because of this, I am running my workload as ...
user avatar
  • 121
0 votes
1 answer
190 views

Using Google IAM for GKE service web access

I am hosting an application on GKE and would like to be able to let users from my organization access this application from the web. I would like them to be able to log-in using their Google Account ...
user avatar
4 votes
1 answer
194 views

kubernetes cluster node with 4cpu can't hold two pods with 2cpu

I have a Kubernetes Cluster on GCE (Google Cloud Engine) (Also called GKE - Google Kubernetes Engine). The Cluster is configured to have 4cpu per node. The pods I am using request 2cpu. I expect to ...
user avatar
2 votes
2 answers
2k views

How to Remove a Kubernetes (GKE) Cluster node-pool without down-time

I am using Google Kubernetes Engine. I have a multiple Kubernetes cluster node-pools. I want to delete one of them. Is there a way that I can first migrate all the pods on one node-pool to another ...
user avatar
3 votes
2 answers
412 views

How do I autostart Jenkins agent machines?

To save money, I would like a large number of agent machines to be stopped and started up only when needed. Better yet, a single VM should be copied and launched on demand. I am using Google Cloud ...
user avatar
7 votes
2 answers
2k views

How to know which user created the GCE Instance

We have several billing enabled projects in our GCP account and each of them has several Compute Engine Instances. I want to remove non-critical instances just to reduce the unnecessary billing. But ...
user avatar
  • 181