Questions tagged [google-cloud-compute-engine]

39 questions
0
votes
3 answers

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 exclamation mark (instead of a green circle with a check…
0
votes
1 answer

GCP instance ssh doesn't recognize user anymore because of different case

Since last week, I've been unable to ssh into my instances on compute engine, either from the command line or the gcp console. I get the following message: (gcloud.compute.ssh) User [kxxgxxx@gmail.com] does not have permission to access users…
0
votes
1 answer

Use ADC Inside Container From Google Batch Job Including Scopes

I trying out Google's Batch service and spinning up a compute engine vm for a small python script. I am executing this by referring to a pre-build docker image and would like to access the default application credentials within that docker instance.…
0
votes
1 answer

GCP api call from cloud function to vm

I am looking to make an api call into a server I host in a compute engine. I want to make this call from cloud function. How can I do this without exposing the Compute Engine to the public?
0
votes
0 answers

How to access preview functionality from the Google Compute Engine Python Client library

I'm trying to instantiate a VM with a maximum run duration as described here. from google.cloud import compute_v1 ... instance = compute_v1.Instance() instance.scheduling = compute_v1.Scheduling() instance.scheduling.instant_termination_action =…
Brian
  • 165
  • 1
  • 3
  • 6
0
votes
1 answer

How do I deploy a container to a GCP VM using the Java API?

I am creating GCP VMs using the programmable Java APIs interface. Maven dependency: com.google.cloud google-cloud-compute 1.21.0 Java…
Wojtek
  • 1,410
  • 2
  • 16
  • 31
0
votes
1 answer

Is it possible to create a UDP and TCP (both) Load Balancer in GCP?

I am currently running a game server in a GCE instance. The protocols used are TCP and UDP, and I would need a LB that takes both protocols into account. At the beggining I created a TCP LB, but obviously I had issues with UDP connections. I have…
0
votes
1 answer

Deploying a python bot script on Google Cloud Run (GCR)

I have been racking my brains on this for a few weeks now, trying different variations from Google Cloud service offerings but can't seem to find the proper one. I have a python script with dependencies etc, that I have containerized, pushed, and…
0
votes
0 answers

How do you automate installation of NVIDIA drivers with a compute image VM from nvidia-ngc-public on GCP?

I am trying to use the images found here to deploy a VM to GCP's Compute Engine with a GPU enabled. I have successfully created a VM from a publicly available NVIDIA image (e.g. nvidia-gpu-cloud-image-2022061 from the nvidia-ngc-public project) to…
0
votes
1 answer

stopInstanceRequest google java library

I am trying to implement a method to programmatically start and stop google compute instances using com.google.cloud.compute.v1 library. The issue I am currently fighting is this: ... Caused by: java.lang.NoSuchMethodError: 'boolean…
Faux_Clef
  • 3
  • 4
0
votes
0 answers

Error with --enable-display-device in COS Google Compute Engine VM

I'm using Cloud Build to start a Google Cloud Compute Engine VM. Here's the command I got from Compute Engine by selecting options in the UI and getting the "Equivalent command line", notice the --enable-display-device: gcloud compute instances…
0
votes
1 answer

Why doesn't Compute VM COS metadata not get carry over to "Equivalent command line"?

I'm deploying a container to a Container Optimized OS or COS on Google Compute. I want to specify Logging and Monitoring for the VM. There are 2 ways to do this: Specify metadata flags: Mark the checkboxes But when I then click on "Equivalent…
engineer-x
  • 2,173
  • 2
  • 12
  • 25
0
votes
1 answer

Auto Scaling Without Load Balancer in GCP

Can someone help me with GCP autoscaling. I want to achive Auto Scaling Without using Load Balancer in GCP because the service which is running on the VM does not need any endpoint its more likely a kafka consumer where its only fetch the data from…
0
votes
1 answer

Open a port on google cloud VM instance

Could not open port on GCP Compute Engine VM instance Hi, I need to open port 5000 on my GCP instance. Tried doing that by adding a firewall policy opening all ports to the region. See Image Didn't work, pinged the port and it is still closed. Port…
0
votes
0 answers

Does Google Cloud phpMyAdmin Have Generative Code

I'm trying to figure out why my install of phpmyAdmin to a ubuntu machine on a google compute didn't work and then did. I started by installing phpMyAdmin manually on vm1 it worked well. I used a snapshot of the disk from before the installation of…