Questions tagged [gcloud]

gcloud is the main command line tool of Google Cloud SDK, which allows you to manage resources on Google Cloud Platform and perform various developer workflow tasks.

gcloud is the main command line tool of Google Cloud SDK, which allows you to manage resources on Google Cloud Platform and perform various developer workflow tasks. Cloud SDK also contains tools and libraries to create and manage App Engine, Compute Engine, Cloud Storage, Cloud SQL, and BigQuery resources.

Useful links

Google Cloud SDK - Home page Google Cloud SDK - Discussions Forum gcloud - Tool Guide gcloud - Support channel at freenode IRC network

4396 questions
1
vote
1 answer

GCP OS Patch management logging

In GCP I have created a patching job in OS Patch management. It shows the status in OS patch management console if the patching job has succeeded or failed. when I click on logs it redirects to log explorer, but I dont see any logs in log…
1
vote
2 answers

Problem running Flask App on Google Cloud App Engine

So I have a simple Flask app (no database connected) that needs to execute a function with arguments parsed via a form. This function processes large amounts of data (and takes a few minutes to do so), and it's divided in parts, after which, yields…
matilde
  • 25
  • 4
1
vote
3 answers

In GCP, how to add label in containers k8s cluster, not to update?

I am trying to add label in k8s cluster, but unfortunately it delete all the add new one. gcloud container clusters update example-cluster --zone us-west1-a --update-labels env=dev I want to add label(preserve previous labels) in existing cluster.…
Shubham Sharma
  • 313
  • 3
  • 10
1
vote
1 answer

Set HTTPS flag in a Cloud Function with in a gcloud deploy instrucction

I'm trying to deploy a GCP Cloud Function gcloud functions deploy MyFuntion --set-env-vars EXPRESSPORT=0000,CODEENV=PRE --region=europe-west1 --entry-point MyPoint --runtime nodejs12 --trigger-http --allow-unauthenticated --ingress-settings=all…
1
vote
2 answers

How to store a CloudSQL client SSL certificate in GCP Keychain

I am not sure what options to use when storing a CloudSQL ssl certificate in the Google Cloud key chain, my import job fails. Which are the correct encryption options for a client SSL certificate? # Get the private key gcloud sql ssl…
rossco
  • 593
  • 12
  • 22
1
vote
1 answer

Google Cloud Run error: Container failed to start (DSS - Digital Signature Service)

i'm trying to get the following docker container running on the google cloud. The container works locally. In the cloud shell, the container also works with "docker run". On the google cloud i can see the port 8080 web preview. When I create a…
1
vote
2 answers

how to schedule a gcloud dataflowsql command

I want to schedule my dataflow sql job. this is my gcloud command gcloud dataflow sql query 'My SELECT query' --job-name dfsql-2d7a0189-177fc4f9444 --region us-east4 --bigquery-write-disposition write-truncate --bigquery-project dev-dp-myproject…
1
vote
1 answer

How do I permanently install an apt package in Google Cloud Shell?

I tried to install a package with apt-get cloud shell once but the next day it was gone. I saw another stackoverflow here. But it was out of date (I think). Please help.
1
vote
1 answer

Grant your originating account the Service Account Token Creator role on the target service account

I used the below command to Authenticate in MAC OS terminal gcloud auth login It redirects to the google login page and show the authentication process successful. While using the command gsutil -i fetebird-storage@fetebird.iam.gserviceaccount.com…
1
vote
0 answers

How to Schedule Google Dataflow SQL jobs

I am trying to explore the Dataflow sql feature. https://cloud.google.com/dataflow/docs/guides/sql/dataflow-sql-intro I am able to submit and successfully execute the Dataflow job using SQL. Now I want to schedule this job every 15 mins. I know for…
1
vote
3 answers

How to increase the cloud build timeout when using ```gcloud run deploy```?

When attempting to deploy to Cloud Run using the gcloud run deploy I am hitting the 10m Cloud Build timeout limit. gcloud run deploy is working well as long as the build step does not exceed 10m. When the build step exceeds 10m, the build fails…
1
vote
1 answer

Use Kubernetes provider on Terraform with private GKE cluster

I want to use the kubernetes provider on Terraform to interact with a private GKE cluster. I can successfully create the cluster however I am unable to create the namespace, I consistently get the timeout error. Authentication is not as issue as I…
parakeet
  • 395
  • 1
  • 11
1
vote
1 answer

gcloud monitoring_v3 query fails on AttributeError 'WhichOneof'

Im using this lib for a while, everything was working great. Using it to query cpu utilization of gcloud machines. this is my code: query_obj = Query(metric_service_client, project, "compute.googleapis.com/instance/cpu/utilization",…
tamirg
  • 607
  • 1
  • 7
  • 15
1
vote
1 answer

gcloud alternate ssh port connection

I'm just getting started with gcloud vm's and trying to secure them up a bit. If I change the ssh port, what switch/flag do I add to the gcloud command when using the gcloud command like this gcloud beta compute ssh --zone "us-east4-c" "base"…
1
vote
1 answer

gcloud ai-platform prediction from standard JSON file ERROR: gcloud crashed (AttributeError): 'NoneType' object has no attribute 'framework'

I am trying to run an ML prediction request on a JSON file records.json. !gcloud ai-platform predict --model housing_prices --json-instances records.json I am getting the following error. Using endpoint [https://ml.googleapis.com/] ERROR: gcloud…
1 2 3
99
100