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.

0
votes
0answers
6 views

Does gcloud storage python client API support parallel composite upload?

The gsutil command has options to optimize upload/download speed for large files. For example GSUtil:parallel_composite_upload_threshold=150M GSUtil:sliced_object_download_max_components=8 see this ...
0
votes
1answer
15 views

MongoError: no mongos proxy available

I am running a MongoDB service in Kubernetes and I am trying to connect with MongoDB service to another back-end services. I deployed MongoDB service to following codelabs tutorial. here is the ...
0
votes
0answers
8 views

Push notification across multiple clusters in kubernetes

We have an app which is deployed across multiple regions in kubernetes. We have created a nodejs server for websocket backend. This backend has an API which our core services hit to send us push ...
0
votes
0answers
18 views

Gcloud app deploy fails using python+django+gunicorn + worker failed to boot

I am trying to deploy a website/webapp using django... constructed app.yaml and requirements.txt... everything done and when I hit gcloud app deploy , I have this following error log at the end.. ...
0
votes
1answer
16 views

Docker image to be reread by kubernetes google cloud

as I am green to that subject, could you pls. help. I deploy docker image to gcloud kubernetes. What to do to make the cluster reread the docker image when a new one would appear? My code is: ...
0
votes
3answers
32 views

How to restart Google App Engine Standard Service

Context: I have an app that serves interactive graphs and data analysis. In order to calculate plots and data summaries, it uses a dataset that is loaded upon App initialization by querying google ...
0
votes
1answer
11 views

gcloud app deploy behavior differs with/without bucket specified

A colleague and I have a bucket each in the same gcloud project, and are both experiencing this behavior on our respective buckets. When I login to gcloud in local terminal and do gcloud app deploy ...
-1
votes
1answer
22 views

Unable to access vm instance via ssh anymore

I'm trying to see if there's anything I can do to re-gain access to my vm instance via SSH. I had access before, I was creating an ssh tunnel to another server and realized I used the wrong one. I ...
0
votes
1answer
38 views

Google Cloud Service Account VS. End User Account

I am currently learning GCP and need to run a python notebook in a VM Instance. When opening the shell of my VM, I ran the following code: sudo install python-pip pip install --upgrade google-api-...
0
votes
1answer
28 views

What is the difference between gcloud app deploy and kubectl expose deployment?

I'm testing google cloud. I'm following official tutorials. I wanted to start with simple node.js app. I've learnt how to setup a basic dockers cluster: https://cloud.google.com/kubernetes-engine/...
0
votes
0answers
39 views

deploying relative path go modules in app engine

my project's folder structure looks like this /folder1 /feature1 feature1.go //package feature1 go.mod /feature2 feature2.go //package feature2 go.mod /web app.yaml ...
1
vote
0answers
55 views

Gcloud update broke my app — GCP Python 2.7

I just upgraded GCloud and now I can't start my dev-env. gcloud --version Google Cloud SDK 238.0.0 app-engine-go app-engine-python 1.9.84 app-engine-python-extras 1.9.74 beta 2019.02.22 bq 2.0.42 ...
0
votes
0answers
13 views

How to disable the default service account in gcloud IAM?

I enable binary authorization for a cluster in project A and define all the policy, create attestors and create attestations in the same project with service-account as projA@gcp-sa-...
0
votes
1answer
19 views

How to rename existing 'named configurations' using gcloud cli in GCP?

I would like to know if there is a way to rename an existing 'gcloud topic configurations' e.g. I would like rename 'foo' to 'bar' in the below example. I couldn't find anything on this in the ...
1
vote
1answer
63 views

Gcloud : Authenticating with Service Account

Authenticating with service account using gcloud We are using below command for activating service account using .json file. gcloud auth activate-service-account <service_account> --key-file &...
0
votes
1answer
48 views

Gcloud : Getting output from a template

I have created a template to deploy a compute instance content of template is given below: resources: - name: {{ properties["name"] }} type: compute.v1.instance properties: zone: {{ ...
0
votes
1answer
21 views

Are Google Maps API limits applied to key or to cloud project?

Google Maps API (Directions API) has limit of 50 queries per second (QPS): https://developers.google.com/maps/faq#usage_apis However, I need more than just 50 as my web app serves lots of users and ...
1
vote
1answer
70 views

gcloud crashed (TokenRevokeError): invalid_request

I'm currently experiencing inconsistency when trying to revoke my gcloud credentials after I'm done using my service account. gcloud auth activate-service-account --key-file=mykey.json {commands...} ...
1
vote
2answers
33 views

Firestore Deadline Exceeded Node

I would like to load collection that is ~30k records. I.e load it via. const db = admin.firestore(); let documentsArray: Array<{}> = []; db.collection(collection) .get() .then(snap => { ...
0
votes
1answer
80 views

gcloud auth configure-docker not working in windows

I am working in Windows & machine. I want to deploy my helloworld application in Kubernetes engine. I build the container image and tag it for uploading, I ran following command docker build -t ...
1
vote
0answers
14 views

Copy files from GCLOUD to S3 with SDK GCloud

I am trying to copy a file between gcloud and aws s3 with sdk gcloud console and it shows me an error. I have got the way to copy the gcloud file to a local directory (gsutil -D cp gs://mybucket/...
0
votes
1answer
24 views

argument --max-dispatches-per-second: invalid float value: '6/m'

I am using cloud tasks, I want to set maxDispatchesPerSecond to 6/m. when I try to update my app engine queue with below command: ☁ rate-limit [master] ⚡ gcloud beta tasks queues update-app-engine-...
0
votes
1answer
38 views

Kubectl: command not found on travis ci

I am trying to deploy a kubernetes cluster using Travis CI and I get the following error EDIT: invalid argument "myAcc/imgName:" for t: invalid reference format See docker build --help ./...
1
vote
1answer
17 views

Deleting old Docker images on a compute instance when updating using Cloud Build

I've got a Cloud Build CI pipeline in which I'm building and pushing a new Docker image, then updating that image on a compute instance. Unfortunately the build happens quite frequently and I keep ...
0
votes
1answer
30 views

gcloud auth use different serviceaccount

When using Google Cloud, the cli has you authenticated as a particular user (serviceaccount, representing either a user or an "account" with limited permissions for a machine). You can get your ...
1
vote
2answers
54 views

Cost of Google Cloud PubSub when there are no messages

I was taking a look Pub/Sub pricing and I couldn't get what would be the price if the subscriber hit the endpoint but doesn't get any message. Because my idea is run a worker 24 hours.
1
vote
2answers
73 views

gcloud compute ssh stops

I am using gcloud ssh to connect gce. > gcloud compute --project "first-medium-2****8" ssh --zone "us-east1-b" "instance-2" I entered the above command to powershell ,but it replies >Using ...
0
votes
1answer
27 views

GCP Using gcloud is it possible to retrieve recommended VM resizes

Can't seem to find any option to retrieve the VM size recommendations that the GCP UI provides in GCE. Is it possible? I'm looking to automate the collection of all recommendations so I can automate ...
0
votes
0answers
24 views

GCloud cannot connect through ssh after vpn tunnel established

I have a VM on Google Cloud serving as vpn gateway. I have followed the steps on this documentation https://cloud.google.com/vpc/docs/special-configurations#settingupvpn The ipsec.conf I use is: ...
0
votes
1answer
27 views

Error in deploying Spring Boot Application to Google Cloud Platform

[INFO] GCLOUD: [INFO] GCLOUD: Updating service [default] (this may take several minutes)... [INFO] GCLOUD: ..............................................................................................
0
votes
1answer
18 views

GKE, Using same ip or ip range for all nodes inside the cluster

I setup a cluster on gke. I also have an RDS database on AWS, this one is inside a VPC. I need to whitelist a CIDR range for access to the database from GKE. My problem is, all my nodes on gke have ...
0
votes
0answers
21 views

Building a container with gcloud, kubectl and python3.6

I want my deployment pipeline to run a python 3.6 script on my GKE hosted database. For that, locally, I use kubectl port-forward then run the script successfully. However, to run it in my pipeline ...
0
votes
2answers
31 views

Export of Google analytics 360 to BigQuery

I am new to Google analytics 360 and bigquery. I am working on linking google analytics with bigquery. I have following questions to understand. How Google analytics 360 export data into bigquery(...
1
vote
0answers
27 views

How to modify Google Cloud Pub/Sub subscription acknowledgement deadline for background Cloud Function

When deploying a background Cloud Function for Cloud Pub/Sub via: gcloud functions deploy function_name --runtime python37 --trigger-topic some_topic A subscription gets automatically created with a ...
0
votes
1answer
21 views

Saving Image to gcloud with firebase cloud function

I´d like to save a selected image from unsplash in a cloud function - to run it in background. Here´s my code: export const getUnsplashCron = functions .region('europe-west1') .runWith({ memory: '...
1
vote
1answer
29 views

Cannot access field customDimensions on a value with type ARRAY<STRUCT<hitNumber INT64, time INT64, hour INT64, …>> at [1:104]

I am new to google bigquery.I am trying to get the data from one of google bigquery dataset but getting below error screenshot attached SQL query: SELECT h.value FROM `bigquery-public-data....
0
votes
1answer
29 views

How to prepare Pub/Sub emulator for tests?

I start the gcloud sdk docker docker run -ti --rm --expose=8085 -p 8085:8085 google/cloud-sdk:latest then i run: gcloud beta emulators pubsub start --project=my-project --host-port=0.0.0.0:8085 ...
1
vote
1answer
45 views

How to combine GCP Cloud Shell commands that run across all projects with commands that are specific to one project?

I am looking to enable an API in all of my projects, but only create the BigQuery dataset in one project. I've tried different ways, but the dataset is being created in every project. Any suggestions ...
0
votes
0answers
40 views

build step 0 “gcr.io/google-appengine/exec-wrapper:latest” failed: exit status 1

I am trying to deploy a rails app to Google Cloud for the first time. Decided to give this a try over heroku. Well, when trying to do the bundle exec rake appengine:exec -- bundle exec rake db:migrate ...
0
votes
0answers
8 views

How to set variable batch size for tf.nn.ctc_beam_search_decoder in serving graph

While making text prediction, I want to send the cropped text images in a batch format to a text recognition network. But the function tf.nn.ctc_beam_search_decoder is forcing to specify the ...
0
votes
0answers
32 views

Access token by Python or shell sctipt

I am trying to get the access token to connect to my BigQuery account and fetch data from there. I am able to connect through service account json config file or gcloud auth login but that all require ...
0
votes
0answers
26 views

Google cloud deploy difference services on different ports

I was trying out on React App with client rendering, which requires an independent server, thus I was wondering if it is possible to deploy backend on one port and frontend(react) on another, just ...
0
votes
1answer
23 views

Can Google Source Repository authenticate with Application Default Credentials?

I'm attempting to clone a repo hosted on Google Source Repository with Application Default Credentials (i.e. the file at ~/.config/gcloud/ application_default_credentials.json). Unfortunately this ...
0
votes
0answers
19 views

Access Job in Kubernetes Cluster

I have some dynamic jobs spinning via a script. The jobs should do their stuff, but i want to expose some kind of API for the status of the Job. For example, i have a small NodeJS Server which will ...
0
votes
1answer
61 views

Executing gcloud command in Jenkins pipeline

I'm trying to run the gcloud command in a Jenkins declarative pipeline just like in the following example: pipeline { agent any stages { stage('Run gcloud version') { steps { ...
0
votes
1answer
21 views

Unable to create key file for iam account GCP using gcloud

I am trying to create a key file for a service account on GCP with gcloud gcloud iam service-accounts keys create ~/.config/gcloud/key.json \ --iam-account terraform@$myproject.iam.gserviceaccount....
0
votes
1answer
19 views

Get list of google sheets owned by service account

I created a several spreadsheets owned by gcloud service account by python script. Is there any way to get list of this spreadsheets owned by this service account? I don't see any matching method here:...
0
votes
1answer
23 views

Restrict gcloud service account to specific bucket

I have 2 buckets, prod and staging, and I have a service account. I want to restrict this account to only have access to the staging bucket. Now I saw on https://cloud.google.com/iam/docs/conditions-...
1
vote
1answer
42 views

gcloud command changes ownership of the current directory

I'm performing usual operation of fetching kubernetes cluster credentials from GCP. The gcloud command doesn't fetch the credentials and surprisingly updates the ownership of the local directory: ~/...
0
votes
1answer
20 views

How to execute the gcloud api to move the alias IP from one instance to another instance?

I have 2 instances in GCP, one instance is configured with static private ip and alias IP. Another instance has only static IP no alias IP. Is it possible to move the alias IP from one instance to ...

http://mssss.yulina-kosm.ru