Questions relating to the usage of the Google Cloud SDK's `gcloud` command-line tool.
Questions tagged [gcloud]
211 questions
0
votes
1 answer
Closing port 22 on Google Cloud
I see when creating a new Google Cloud account, the firewall rules are set to allow traffic from all locations to SSH
default-allow-ssh IP ranges: 0.0.0.0/0
Can these rules be deleted safely or does Google Cloud depend on SSH being open to the…

Jan Vladimir Mostert
- 553
- 5
- 19
0
votes
1 answer
How can I create a C2 VM on GCP?
When I try to create a c2-standard-4 VM in the central region, I always get an error "Quota 'C2_CPUS' exceeded. Limit: 1.0 in region us-central1." (other regions have limit 0.0). There is no way to request an increase either, CPUs is not listed on…

mobileink
- 101
0
votes
1 answer
Can I export a GCloud drive image to store locally and restore later?
Can I export a GCloud drive image to store locally and restore later ?
I need to save money for drives that I most rarely use.
Seems the SSD-Drives amass the bulk costs that I need to avoid without deleting the disks.
Regards,
Frank

Frank
- 1
0
votes
1 answer
Impact on GCP Cloud functions during label change
What is the impact for CLoud functions during deployment ? Does the function become unavailable during deployment or any trigger during this deployment time will fail ?
I can deploy using GCP Console or by using below gcloud command
gcloud…

Zama Ques
- 523
- 1
- 9
- 24
0
votes
1 answer
How to automatically start/stop an instance (vm) based on some event/trigger in google cloud?
We are employing a GPU instance in google cloud to run a machine learning related service.
Google cloud has these un-scheduled maintenance plans for their GPU instances. Before the instance is down for maintenance, google cloud api would send…

Kid_Learning_C
- 143
- 7
0
votes
2 answers
How to suppress `gcloud compute firewall-rules update` output when there are no errors?
I have a bash script running as cron job which has some gcloud commands in it.
eg.
gcloud compute firewall-rules update allow-ssh--source-ranges=$(echo "${mylocations[@]}" | tr ' ' ',')
I have the crontab entry redirecting stdout to /dev/null, so…

paradroid
- 868
- 5
- 15
- 29
0
votes
1 answer
apt-get is stuck with mysql after creating a vm from snapshot in Google cloud
I'm using Google cloud and I have a vm (Ubuntu 18.04) that is working fine. The apt-get command works totally fine and mysql service is running well. Let's call it vm-1
I needed to create another a duplicate vm, so I first made a snapshot of vm-1,…

Kid_Learning_C
- 143
- 7
0
votes
1 answer
Changing parameters for GCP CLoud run with gcloud command
When we change labels for existing CLoud Run serivces using gcloud command , it does a deployment as well as revision change
$gcloud run services update test --update-labels env=prod,test=test1
✓ Deploying... Done. …

Zama Ques
- 523
- 1
- 9
- 24
0
votes
1 answer
Getting "server refused our key" when connecting to GCloud using Putty
I've just set up a new test instance on Google cloud... it's Debian, the default Google build.
I've been able to connect successfully to the instance using the SSH console (from Chrome) and the gcloud shell. Both use Google generated keys.
I want…

Brian Lynn
- 1
- 2
0
votes
1 answer
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 metrics.
Regional managed instance groups do not…

Thulasya
- 3
- 2
0
votes
1 answer
gcsfuse automount on a non root user
Currently I have a VM that runs CentOS 7 and would like to auto mount a bucket using a non root user.
I have installed NextCloud and would like to point local data folder to Google Cloud Storage.
Tried various examples but none of them seemed to…

el.severo
- 87
- 1
- 10
0
votes
1 answer
Google Cloud load balancer redirect if from a certain region
I have two static pages (English, Danish) which are currently in Google Cloud Storage Bucket. This bucket contains en and dk folders for those static pages. Also, I have a Load Balancer with Google CDN feature.
I want to achieve that when a person…

Ugnius Malūkas
- 101
- 2
0
votes
1 answer
Gcloud compute snapshot of re-created disk is not complete?
I recently recreated a disk / vm image in google compute from a previous set of snapshots. Those snapshots are currently dated and sized as follows:
- May 20 60 MB
- May 21 372 MB
- May 22 255 MB
- May 23 118 MB
- May 24 93…

GaryA
- 1
- 1
0
votes
0 answers
GCSFuse keeps generating dummy files on mounted bucket that can't be deleted due to retention policy
I'm currently setting up a GCP storage bucket on my instance which will be used for backups. I have currently configured fstab to mount the bucket on startup using the following config.
cpanel1-vm-backups /mount/backups gcsfuse rw,user
The problem…
0
votes
1 answer
Adding new acces config on SSH Connection
I have a problem on my Google Cloud Platform account
In SSH connection, I can delete my existing access config but can not add new one. When I run the command below the sceen is waiting and noting happeninig.
However, in Cloud Shell, I did not…

Oguz
- 1