Questions tagged [google-cloud-run]

Cloud Run is a managed compute platform that enables you to run stateless containers that are invocable via HTTP requests, providing comprehensive servicefull systems where responsibilities can be outsourced to a specialist service provider.

Cloud Run is a managed compute platform that enables you to run stateless containers that are invocable via HTTP requests.

Official sites:

2585 questions
15
votes
4 answers

Google Cloud Run end-user authentication

I'm using Google Cloud Run for a simple POC web app. My hope was to lean on GCP IAM to handle authentication for the time being, similar to how Identity-Aware Proxy (IAP) can be used in conjunction with App Engine or GKE. When I gave the Cloud Run…
Tyler Treat
  • 14,640
  • 15
  • 80
  • 115
14
votes
5 answers

Permission error when trying to deploy to Google Cloud Run

I'm getting a permission error when trying to deploy an image to cloud run: gcloud beta run deploy endpoints_proxy \ --image="gcr.io/endpoints-release/endpoints-runtime-serverless:1.30.0" \ --allow-unauthenticated This is the error: ERROR:…
Carlos Martinez
  • 4,350
  • 5
  • 32
  • 62
13
votes
2 answers

How to use Google Cloud PubSub and Run to handle resource-intensive long-running tasks?

I've got a Google Cloud PubSub topic which at times has thousands of messages and at times zero messages coming in. These messages represent tasks which can take upwards of an hour each. Preferably I'm able to use Cloud Run for this, as it scales…
12
votes
1 answer

CloudRun Suddenly got `Improper path /cloudsql/{SQL_CONNECTION_NAME} to connect to Postgres Cloud SQL instance "{SQL_CONNECTION_NAME}"`

We have been running a service using NestJS and TypeORM on fully managed CloudRun without issues for several months. Yesterday PM we started getting Improper path /cloudsql/{SQL_CONNECTION_NAME} to connect to Postgres Cloud SQL instance…
12
votes
2 answers

Can GCP's Cloud Run be used for non-HTTP services?

I'm new to GCP and trying to make heads and tails of it. So far, I've experienced with GKE and Cloud Run. In GKE, I can create a Workload (deployment) for a service of any kind under any port I like and allocate resources to it. Then I can create a…
Mehran
  • 15,593
  • 27
  • 122
  • 221
12
votes
5 answers

Simplest way to perform logging from Google Cloud Run

I followed this guide https://firebase.google.com/docs/hosting/cloud-run to setup cloud run docker. Then I tried to follow this guide https://cloud.google.com/run/docs/logging to perform a simple log. Trying to write a structured log to stdout This…
Zorik
  • 207
  • 1
  • 3
  • 9
12
votes
7 answers

long-running job on GCP cloud run

I am reading 10 million records from BigQuery and doing some transformation and creating the .csv file, the same .csv stream data I am uploading to SFTP server using Node.JS. This job taking approximately 5 to 6 hrs to complete the request…
12
votes
1 answer

Google Cloud Run Authentication Service-to-Service

I have two services (APIs) deployed on GCP Cloud Run. Call them service-one.myDomain.com and service-two.myDomain.com. I would like service-one to be authenticated in calling service-two independently of what any user is doing. I've read and…
11
votes
4 answers

Unable to deploy a Cloud Run Service using an image from another project

Getting this error when trying to deploy a Cloud Run Service using an image from another project on same organization. " Google Cloud Run Service Agent must have permission to read the image, gcr.io/my-builds/consultoriaweb@sha256:8c655b2bab.....…
Wagner Pereira
  • 273
  • 2
  • 8
11
votes
1 answer

Gunicorn (with Flask) parameters for Google Cloud Run (GCR) - what to put in Dockerfile?

Looking for some guidance from people with practical GCR experience. How do you get on with this? I run a Docker container (approx. 670mb in size) in Google Cloud Run, inside is my Python server based on Flask and it is currently ran by this command…
11
votes
1 answer

The caller does not have permission when attempting to use Google Cloud Storage within Cloud Run

I'm attempting to get a Node project setup on Google Cloud Run with Cloud Storage. I am running into an authentication issue when using a created Service Account. When creating the service account I did successfully download the JSON token and got…
11
votes
3 answers

Use user account Credential for reaching private Cloud Run/Cloud Functions

Here my use case. I already have a Cloud Run service deployed in private mode. (same issue with Cloud Function) I'm developing a new service that use this Cloud Run. I use the default credential in the application for the authentication. It worked…
11
votes
4 answers

How to get puppeteer working in Google Cloud Run/Cloud Build?

I have a docker image containing a puppeteer web scraper. It works perfectly in my local machine when I build and run it. It also build fine in cloud build, deploys to cloud run and starts the http server. However, when I run one of the cron jobs…
11
votes
3 answers

Stackdriver Trace with Google Cloud Run

I have been diving into a Stackdriver Trace integration on Google Cloud Run. I can get it to work with the agent, but I am bothered by a few questions. Given that The Stackdriver agent aggregates traces in a small buffer and sends them…
Wietse Venema
  • 2,684
  • 1
  • 19
  • 18
11
votes
3 answers

readiness check for google cloud run - how?

I've searched quite extensively in the documentation at https://cloud.google.com/run/docs/how-to. I also found the YAML in the console.cloud.google.com, but I can't edit it. Is there a way to set it up using a command I might have missed? EDIT: I…