Questions tagged [google-compute-engine]

Google Compute Engine offers scalable and flexible virtual machine computing capabilities in the cloud.

Google Compute Engine (GCE) is the Infrastructure as a Service (IaaS) component of Google Cloud Platform which is built on the global infrastructure that runs Google's search engine, Gmail, YouTube and other services. Google Compute Engine enables users to launch virtual machines (VMs) on demand. VMs can be launched from the standard images or custom images created by users. GCE users must authenticate based on OAuth 2.0 before launching the VMs. Google Compute Engine can be accessed via the Developer Console, RESTful API or command-line interface (CLI).

Useful links

1463 questions
3
votes
2 answers

Google Cloud Compute Engine persistent disk snapshot schedule not working

i created a VM with terraform on GCP and also a persistent disk separately with the google_compute_disk , google_compute_resource_policy, google_compute_disk_resource_policy_attachment resources to also attach a snapshot schedule to the disk This…
3
votes
1 answer

Browser SSH to VM Instance Without External IP

In my GCP project, as a project owner SSH option is enabled on browser for me on an VM instance with NO External IP but Not for other users who have Compute Admin and with "roles/iam.serviceAccountUser" to compute service account. The same users are…
Praveen
  • 31
  • 2
3
votes
1 answer

How to use Google Cloud Run with my clients domain?

I'm Building a multisite enviromment to allow my clients to build their websites (like a wix builder). I already have it working on a single VM but I want to use cloud run to scale this better. The question is: How I can connect programmaticaly my…
3
votes
1 answer

GCP: requests to increase "CPUs (all regions)" quota keep getting rejected

I recently started using the Compute Engine Google Cloud Platform. Last week, I switched from the free trial to a paid plan. As my deployments were limited by the CPU quota, I requested increases for two quotas: "CPUs (europe-north1)" and "CPUs (all…
3
votes
1 answer

Can't connect to server via SSH using gpg-agent

I'm trying to connect to a VM on Google Cloud. I've created a public key to use for SSH and added the key to the cloud instance. I have SSH_AUTH_SOCK set to the file used by gpg-agent. ~/.gnupg/gpg-agent.conf default-cache-ttl 600 max-cache-ttl…
3
votes
2 answers

Is there a way to check whether the "APIs and services" are enabled to a project in google cloud platform via API call?

I want to check for a project whether the "API and services" are enabled or not via an API call.
3
votes
2 answers

Only allow connection to GCP Compute Engine VM originating from Cloud Run service

I have a DB server running as a Compute Engine VM, and an API running on Cloud Run. Both are part of the same project. I want the DB VM to only be accessible from the Cloud Run code. At first I thought this should just work because the firewall has…
2
votes
3 answers

How to create a disk image located in asia,eu,us regions?

Several of Google Cloud Platform's pre-built disk images have their location set to asia,eu,us. However, I have not been able to set the location to asia,eu,us for my own disk images. The documentation for gcloud compute images create…
2
votes
2 answers

GCP networking from VM compute to GKE service in same VPC

I have a compute instance VM named mysql-1 in the same account, same VPC as a GKE cluster. I have a k8s service deployed: ~ $ kubectl get services NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S)…
2
votes
1 answer

Policy to upgrade OS images in Google GCE

https://cloud.google.com/solutions/image-management-best-practices isn't helpful. Should I recreate infrastructure from new images or sudo apt dist-upgrade?
gavenkoa
  • 792
  • 8
  • 13
2
votes
2 answers

Google Why Mount /dev/root AND /dev/sda1 on / in Ubuntu 18.04 LTS Minimal Image?

Google is mounting two different disks on / in Ubuntu 18.04 LTS Minimal image. This uglifies VM monitoring since the disk labels are inconsistent from machine to machine depending on what type of Ubuntu image is used. Normal Ubuntu 18.04 LTS image…
2
votes
1 answer

How to clone a GCP VM instance boot disk, read/write from/to it and re-attach it

Although I'm sure the overall operation can be accomplished, see detach and re-attach part for example, it might not be possible to do that as just one, let's say, operation. The use case here is, a RHEL image boots into emergency mode and root…
fbraga
  • 213
  • 1
  • 8
2
votes
1 answer

Too many redirects error

I am using drupal 8 , in a Google cloud engine (http and https traffic allowed) running apache on an Ubuntu 19.04. All worked, site (refered to here as sub.my-domain.com, it is indeed a subdomain with a dash in the domain) was running. Certificate…
2
votes
1 answer

How to fix the error "SSLHandshakeException" when load testing Google Cloud Load balancer with an HTTPS?

When I perform a load testing to my website over HTTPS, I received multiples errors related with SSL Handshake when I simulate a high amount of concurrent users (>500 / sec). Here are the errors that I received: Error…
2
votes
1 answer

Can I hook up my Google Compute Engine VM to Cloud Shell?

I am wondering if there is a way to hook up my Google Compute Engine VM to Cloud Shell. The purpose is so that I can edit files in my VM using Cloud Shell editor. Thanks.
Pelangi
  • 23
  • 2