Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

Connect from Spring boot app running on Google Cloud Run to a Cloudsql without GCP starter

I have a Spring boot app running on Google Cloud Run, and I want to connect to a postgres instance running on Google Cloudsql. I am able to connect using Spring Cloud GCP starter project. <...
drunkenfist's user avatar
  • 3,048
9 votes
3 answers
4k views

Cloud Run finishes but Cloud Scheduler thinks that job has failed

I have a Cloud Run service setup and I have a Cloud Scheduler task that calls an endpoint on that service. When the task completes (http handler returns), I'm seeing the following error: The request ...
Tadas Vilkeliskis's user avatar
10 votes
9 answers
8k views

How do I run a serverless batch job in Google Cloud

I have a batch job that takes a couple of hours to run. How can I run this in a serverless way on Google Cloud? AppEngine, Cloud Functions, and Cloud Run are limited to 10-15 minutes. I don't want to ...
Lak's user avatar
  • 4,206
0 votes
1 answer
310 views

How can A service of Google Cloud Run for Anthos on GKE connect to Firestore on different project of different organization?

I made a service of Cloud Run for Anthos on GKE. And Then, I want to make it connect to the Firestore on a Project of a diffrent Organization. How can it make connect to Firestore? I created a ...
SpaceNet's user avatar
  • 193
0 votes
2 answers
4k views

Can't connect to Cloud SQL using node-postgres

I've been trying to connect to my Cloud SQL instance using the pg module but haven't been successful so far. I've looked around a lot online but couldn't understand much on the topic. I also would ...
Frixoe's user avatar
  • 97
1 vote
2 answers
2k views

CloudRun: Debug authentication error from curl

I am spinning up a container (pod/Job) from a GKE. I have set up the appropriate Service Account on the cluster's VMs. Therefore, when I manually perform a curl to a specific CloudRun service ...
pkaramol's user avatar
  • 19.6k
2 votes
2 answers
1k views

GCP Cloud Run: Failed to create a service

I am trying to use Cloud run with private GKE cluster. I created the cluster using the below command: gcloud beta container clusters create cluster-name \ --create-subnetwork name=cloud-run-...
Amit Yadav's user avatar
  • 5,034
0 votes
1 answer
107 views

Permission to invoke CloudRun apparently not granted to GKE (pods)

I want to be able to invoke a GloudRun endpoint by one of my GKE pods. When I describe my VMs/instances that comprise my GKE cluster, I see serviceAccounts: - email: 873099409230-compute@developer....
pkaramol's user avatar
  • 19.6k
2 votes
1 answer
983 views

Is there a way to run GCP's Cloud Run with Private GKE cluster?

I understand there are two ways in which a container can be deployed on Google Cloud Run: Cloud Run Fully managed: This runs independently managed by GCP without us creating a cluster Cloud Run for ...
Amit Yadav's user avatar
  • 5,034
0 votes
1 answer
146 views

IAM ServiceAccount for CloudRun service endpoint invocation

I have created a CloudRun service. It is exposed by an endpoint as expected which I can invoke externally. Wanting to protect it, I need to provision for only Internal connectivity. The endpoint is ...
pkaramol's user avatar
  • 19.6k
1 vote
2 answers
4k views

Using Firebase Admin Auth within Cloud Run Container

I am using Firebase admin auth as authentication and authorization mechanism (client send token, server will validate and check users' roles contained in the custom claims) in my Cloud Run running ...
Andika Tanuwijaya's user avatar
1 vote
4 answers
2k views

Ability to run gcloud commands from a container in GKE or CloudRun

I have just installed gcloud on a docker container. When I try to run a command locally, I get the following error (which makes sense) root@3c4b9a147de7:/# gcloud projects list ERROR: (gcloud....
pkaramol's user avatar
  • 19.6k
1 vote
0 answers
519 views

Certificate renewal in Cloud Run

I am using a LetsEncrypt certificate between Cloudflare and a Cloud Run service and the issuing process is using HTTP-01 challenge, e.g http:///.well-known/acme-challenge/. The certificate is set to ...
Andrei Tigau's user avatar
  • 2,058
2 votes
2 answers
1k views

Google Cloud Auth for Internal CLI using Cloud Run

We've built several services using Cloud Run. Our goal is to build an internal CLI that allows our developers to make calls to these services. We're having trouble generating an id_token to use with ...
Kevin O'Hara's user avatar
2 votes
1 answer
102 views

What's the easiest way to block my web app from public view, but open to the developer only?

I've got an app on Cloud Run that I'm using as a utility tool. Right now I can only see the UI if I set allUsers to Cloud Run Invoker role, but I want to do the opposite, block allUsers EXCEPT myself ...
daviddavis's user avatar
5 votes
2 answers
3k views

Structured Logs in Google Cloud Run not being parsed (using Winston for logging)

I'm attempting to format my logs in such a way that Google Cloud will correctly extract the log level. This is running on Cloud Run, with typescript. Cloud Run is grabbing the logs from the container ...
Patrick White's user avatar
2 votes
1 answer
820 views

Running Django's createsuperuser in Google Cloud Run

I'm trying to run a Django app on Google Cloud Run. The site itself works nicely, can run migrations and collect static assets via a startup script. The one thing I cannot figure out how to do is ...
Julian25's user avatar
  • 685
1 vote
1 answer
4k views

How to rollback after deploying to Google Cloud Run

I started playing with Google Cloud Run and, at least on the surface, it looks like a fantastic tool. One thing I can't figure out is how to do rollback efficiently. I deploy my service via command ...
David's user avatar
  • 3,175
1 vote
0 answers
295 views

Accessing Cookies from a other Domain

I use Google Cloud Run and host a Server Side Rendered Website there (Nuxt). Now for authentication I set a access_token Cookie on my Domain when a User logged in so I can access it on the Server to ...
niclas_4's user avatar
  • 3,682
4 votes
1 answer
2k views

Can't decrypt property from spring cloud config or environment variable

I'm trying to get my KMS library, found here, to decrypt items from my application.yml that come from either the google cloud config server or an environment variable. In playing around I've tried a ...
Puttzy's user avatar
  • 156
0 votes
1 answer
597 views

Create service or container from another container, on Google Cloud Run or Cloud Run on GKE

Can I create a service or container from another container, on Google Cloud Run or Cloud Run on GKE ? I basically want to manage my containers/services dynamically from another container and not sure ...
haknick's user avatar
  • 1,920
10 votes
3 answers
6k views

Monitor Google Cloud Run memory usage

Is there any built-in way to monitor memory usage of an application running in managed Google Cloud Run instances? In the "Metrics" page of a managed Cloud Run service, there is an item called "...
favq's user avatar
  • 789
6 votes
4 answers
9k views

Why Cloud Run Showing "Listen On This Port Error"

I am using cloud run. I pull docker images, then push them directly to a google container registry and then link them to Cloud Run Service. However, when I try to deploy Cloud Run Service I don't know ...
Muhammad Arsalan's user avatar
0 votes
1 answer
383 views

Cloud Run ingress not working on certain networks

We are live on https://whofastpass.com, I love Cloud Run, but a number of users who have reported that they cannot connect to the application using the custom domain above, https://whofastpass.com ...
F.O.O's user avatar
  • 4,970
8 votes
1 answer
8k views

Is it possible to run Postgres (or any DB) with Google Cloud Run?

1. Summarize the problem Google Cloud Run advertises that it is "stateless containers". Is there a way to run anything at all, have it save state somewhere? I want to run Postgres in a container, ...
user10664542's user avatar
  • 1,326
4 votes
1 answer
3k views

Getting 403 Forbidden on Google Cloud Run with API key

I have set up a very simple Node application with Express on Google Cloud Run. It works great, but when I set it up with "Allow unauthenticated invocations to [service] (y/N)?" to No, I get a 403 ...
Olav Gausaker's user avatar
2 votes
2 answers
1k views

Does cloudrun on GKE support websockets?

This is my first time using GCP, and I'm trying to put my project on production, and I'm running into problems with getting websocket communication working. I've been googling around and I'm super ...
Zacx's user avatar
  • 436
1 vote
1 answer
376 views

How to specify Cloud Run endpoint for PubSub Subscription in Cloud Build?

I am building docker which involves cloud run deployment and want to add a PubSub push subscription in next step with Cloud Run as an endpoint. How can I link the endpoint url that I get in previous ...
BVSKanth's user avatar
  • 111
72 votes
10 answers
24k views

Google Cloud Run - Domain Mapping stuck at Certificate Provisioning

Is anyone getting this issue with Google Cloud Run Domain Mapping? When I add a custom domain to my domain mappings, I get this: Waiting for certificate provisioning. You must configure your DNS ...
bryan's user avatar
  • 9,419
4 votes
1 answer
819 views

Which production server to use for Python applications in Cloud Run?

I want to use GCP cloud run as a technology to run my python flask app, so I have to dockerize it. Most of examples I've seen are either using built in flask server or gunicorn server as an ENTRYPOINT,...
alobodzk's user avatar
  • 1,334
1 vote
2 answers
3k views

Is there a way to monitor network traffic/egress from Google Cloud Run console?

I have been going through the Google Cloud Run and StackDriver documentation, but I am not able to find a way to monitor network traffic generated by a Managed Cloud Run Service. Google itself is also ...
Paul's user avatar
  • 23
7 votes
0 answers
1k views

Can I deploy Cloud Run using Deployment Manager? [closed]

I'm trying to figure out if I can use Google Deployment Manager to deploy a service to Cloud Run. If not is this on the roadmap? https://cloud.google.com/deployment-manager/docs/configuration/...
anishkny's user avatar
  • 421
0 votes
1 answer
818 views

Edits to config-autoscaler configmap automatically revert a few minutes after changes applied

I'm trying to tune the autoscaler for a Google Kubernetes Engine cluster with the cloud-run addon enabled. When I edit the configmap The changes are accepted by the API server. However, after a few ...
Faun's user avatar
  • 684
1 vote
2 answers
879 views

Google Cloud run / Trobleshooting pubsub 403

Just followed the tutorial available here, everything's clear; apparently nothing blocks The configured run service iam : gcloud beta run services get-iam-policy $CLOUD_RUN_INSTANCE_NAME returns ...
Ben's user avatar
  • 5,214
3 votes
4 answers
3k views

Are users sessions on Google Cloud Run apps directed to the same instance?

For example, If my app, which is scaled automatically by GCR, has OAuth 2.0 + PKCE authorization code flow against a third party identity provider, can I guarantee that after the user has logged in ...
ndtreviv's user avatar
  • 3,644
2 votes
1 answer
2k views

Getting 302 redirects on any service that i redeploy

We're suddenly getting recursive 302 redirects in our Cloud Run services. Any service that we deploy now will get the same issue. We run a small app of like 8 services with Cloud Run and recently one ...
paganotoni's user avatar
5 votes
2 answers
3k views

Google Cloud Run Container Networking

I have a system of apps/services in docker containers that, when I bring them up using docker-compose, talk to each other using a bridge network. Workers start up and register themselves with a ...
ndtreviv's user avatar
  • 3,644
1 vote
1 answer
424 views

Cloud Run Authenticating end-users of a CLI

We are porting an existing API to Cloud Run and would like to make use of the built in IAM authentication features. This means generating a signed JWT for use as an Authorization Bearer token. There ...
Andy Hume's user avatar
  • 41.7k
2 votes
2 answers
3k views

Google Cloud Run masks Bearer token in Authorization header

The Google documentation for Cloud Run states that you can "pull the token out of the Authorization header" (docs here) in order to validate it and obtain further information about the requesting user....
Andy Hume's user avatar
  • 41.7k
1 vote
1 answer
211 views

Google Cloud Run CI/CD on Cloudbuild / Handling domain mapping

Following this guide , it stops at the deployment step itself. I'd be looking to apply one last step, which would be an automatic domain mapping setup, that couldbuild would run : gcloud beta run ...
Ben's user avatar
  • 5,214
3 votes
2 answers
4k views

Does Google Cloud Run allow you to spawn additional threads in Java?

When Cloud Run spins up an instance to handle HTTP request for my Java service, the service would have to reach out to multiple external services through network calls to get the final conclusion ...
user482594's user avatar
  • 17.5k
1 vote
0 answers
78 views

Odd delay when making service-to-service calls on Google Cloud Run

I have 2 simple services written in Go deployed on Cloud Run region us-central1 and I'm experiencing an odd delay when I have one service call the other. Here's the code: test1.go test2.go I ...
Anri Digholm's user avatar
0 votes
2 answers
1k views

Can Cloud Run respond in less than 200ms?

Cloud Run seems to respond in over 400ms. even on repeated calls (I assume 'warmed up' containers). I deployed a simple node.js service (see code below) that responds with a static JSON. The ...
doron grinstein's user avatar
1 vote
1 answer
1k views

Accessing a Cloud Run service from another project

Can I access the CloudRun api from a different project using a ServiceAccount from that project ? I have a Project A, in which a CloudRun service (ServiceA) is hosted. I have another Project B, from ...
RDs's user avatar
  • 531
6 votes
1 answer
3k views

How do I correlate request logs in Cloud Run?

I am using self structured JSON payloads for logging from my Node.js/Express based Cloud Run service and I am unable to get logs from the same request to correlate using the trace method. The ...
Binarytales's user avatar
  • 9,778
0 votes
1 answer
437 views

Can Cloud Run (GCR) override CMD for container?

Attempting to migrate from k8s to Cloud Run... I have one container that ordinarily gets started via CMD ["npm","start"] but it has some utility methods that k8s invokes on cron. k8s conveniently ...
Robin Southgate's user avatar
0 votes
0 answers
101 views

Cloud Run endpoint protected with ESP/Endpoints taking over 500ms?

I deployed a Cloud Run service and for testing purpose, expose a simple service that responds with a static JSON {"result": "ok"} I removed "all users" from the role binding, only allowing access to ...
doron grinstein's user avatar
0 votes
1 answer
266 views

Provide a single endpoint to multiple CloudRun service endpoints

I have a CloudRun service with the url "https://mycrservice.gxygegr.a.run.app". Since my callers are in multiple regions, do I have to create a new service for each region ? If I do, how can I have ...
RDs's user avatar
  • 531
0 votes
1 answer
1k views

google cloud run for docker container along with shared folder as google cloud storage bucket

I am trying to create a docker container in google cloud run, which has a google cloud storage bucket as a shared folder. Tried and searched a lot, no luck. Gow to implement this? Anybody please???
Noxious Reptile's user avatar
5 votes
3 answers
2k views

Cloud-Run process fails with 500 status-code and a membarrier gvisor error

Backround The service is a simple Go program that pipes a file from Cloud Storage to the browser. Everything works fine on my Macbook, but fails on Cloud-Run (managed) for some requests. Mostly ...
Andrioid's user avatar
  • 3,400