Questions relating to the usage of the Google Cloud SDK's `gcloud` command-line tool.
Questions tagged [gcloud]
211 questions
3
votes
1 answer
Use ansible gcp modules to create Cloud NAT
I am currently struggling to configure Cloud NAT in gcp via ansible.
I was able to set up the Cloud NAT as described in the documentation: https://cloud.google.com/nat/docs/gke-example with gcloud commands, doing basically the three steps create…

Thomas Böhm
- 145
- 1
- 8
3
votes
1 answer
gsutil rsync "too many values to unpack" error
I'm trying to sync a folder with over 3k files to a bucket on Google Cloud with gsutil. The problem is that less than half of the files are uploaded and then I get this error:
too many values to unpack CommandException: 1 files/objects could
not…

Enrico Dias
- 133
- 5
3
votes
1 answer
Obtaining the private key from an SSL certificate managed by GCP
I'm using Google Kubenetes Engine and I put an SSL certificate on my Ingress using Google-managed certificates
I've discovered I can view the certificate using this command:
gcloud beta compute ssl-certificates describe certificate-name
However…

Toby 1 Kenobi
- 287
- 2
- 13
3
votes
1 answer
GAE container terminated by container manager
I have an Google App Engine app which is basically a couple NodeJS scripts that run a website.
Some of this scripts are being terminated for apparently no reason, but looking at the logs this is happening:
Msg1: Container terminated by the container…

user3583107
- 31
- 4
3
votes
1 answer
How to handle retention policies in GCP Container Registry
GCP Container Registry is built on top of GCP Cloud Storage and one can set quite complex retention policies there.
However there's no such functionality in Container registry and as there's no disctinction between images in Storage (All the image…

Fleuri
- 255
- 3
- 12
3
votes
1 answer
How to use JSON keys with google cloud gsutil to manage multiple Keys
We have multiple GCP Service account keys from different environment such as DEV,STAGING,..PROD.
I would like to run a command in my jenkins box which is there in Dev environment to create access DEV and Staging environments,
I don't want to run…

Dinesh SC
- 33
- 1
- 2
- 6
3
votes
1 answer
vm.max_map_count problems on GKE ElasticSearch StatefulSet
A problem appeared on working ElasticSearch cluster on GKE.
Nodes with "data" roles began to crash unexpectedly with an error:
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
bootstrap checks failed
Of…

Victor Bessonov
- 153
- 1
- 2
- 10
3
votes
2 answers
Giving friendly names to authorised networks via gcloud command
I'm authorising instances access to PostgreSQL via the gcloud command:
gcloud sql instances patch blah-sql-dev --authorized-networks 10.1.1.2/32,10.1.1.3/32,.....
What I'm seeing under Cloud SQL's Authorised Networks is just the IP addresses…

Jan Vladimir Mostert
- 553
- 5
- 19
3
votes
1 answer
Copy list of files (-I flag) with gsutil preserving path
I am trying to copy all pictures and static files to a bucket of mine in Google Cloud Platform.
I am attempting this command from the root dir of my app:
find -regextype posix-extended -iregex ".*\.(js|css|png|jpg|gif|ttf|cur|woff|eot)" | gsutil -m…

santiago arizti
- 435
- 6
- 16
3
votes
2 answers
GCloud universal service account
I have around 8 projects created under my GCloud account and it might increase in future.
I am trying to manage inventory and other activity related to all the projects from single place using automation. It becomes very critical to manage 10+…

Pratap
- 695
- 6
- 22
3
votes
1 answer
How to run Ansible's gce.py script from inside an instance running in the cloud?
My goal is to create a compute engine instance in Google cloud from which I can run ansible scripts to further create additional instances that will run containers via GKE.
I've figured out a number of things already:
How to create an instance…

Cognitiaclaeves
- 181
- 10
3
votes
1 answer
gcloud scp: Alpha Access Permission required
I try to use gcloud alpha compute scp to transfer files to one of my instances.
I get - Required 'Alpha Access' permission for 'Compute API' when executing the command.
The instance is started with --scopes compute-rw
Where can I set the required…

soupdiver
- 807
- 2
- 9
- 26
3
votes
2 answers
ERROR: gcloud crashed (ConnectionError): HTTPSConnectionPool(host='oauth2.googleapis.com', port=443):
I have been using gcloud cli for last 3months on my system, but now I start facing this error while authenticating with gcloud auth login or gcloud init --console-only.
After debugging it, I see some issue with the DNS resolution for…

shaishaw
- 31
- 1
- 2
2
votes
1 answer
GCLOUD IAM VPN into gcp network
We want to create a VPN into our GCP network where users are authorized using their IAM credentials. This way we can hide our development servers from the outside world but not from the office/for our developers. We are aware of IAP but we would…

kvanzuijlen
- 21
- 1
2
votes
1 answer
Google cloud platform: k8s master cannot ssh to nodes
I have a very strange issue on google cloud platform with one of my K8S clusters.
Two days ago, everything worked like a charm. But yesterday every helm commands used to deploy on this cluster started to fail with:
Error from server: error dialing…

Matthieu P.
- 21
- 3