3,132 questions
9
votes
2
answers
9k
views
How can I check how many instances of a Google Cloud Run container are running?
Google Cloud Run lets me set a concurrency for a given container, which is how many concurrent requests it will service before a new container is spun up.
How do I actually check how many containers ...
34
votes
2
answers
27k
views
What's the default storage for Google Cloud Run?
There is not documentation that I can find about the storage that Google Cloud Run has. For example, does it contains few Gigabyte storage as we create a VM?
If not, is there a '/tmp' folder that I ...
10
votes
1
answer
2k
views
Ajax request to cloud run service that requires authentication
I'm having a CORS related issue with google cloud run on a service that
requires authentication.
If I try to execute a curl command through the cli, with a Bearer token,
everything works fine.
...
1
vote
1
answer
340
views
Connecting to a Google Cloud SQL instance from a Google Cloud Run docker image [duplicate]
I have a Google Cloud Run docker image and would like to connect to a Cloud SQL instance. The instance has a private IP, but I don't seem to be able to use that.
Is this scenario supported for Cloud ...
3
votes
1
answer
802
views
How to set a minimum scale for Cloud Run on GKE services?
I'm using Cloud Run on Google Kubernetes Engine and I'm able to deploy and access services without a problem.
But since I'm running on GKE and paying for the cluster 24/7 it makes no sense to scale a ...
2
votes
2
answers
1k
views
How to allow outbound requests from a Google Cloud Run cluster on GKE
Cloud Run enabled clusters disable outbound network traffic from any pod by default
After creating a cluster with Cloud Run by following the documentation, one can check that all requests from inside ...
6
votes
2
answers
4k
views
`gcloud builds submit` for Cloud Run
I have this situation, because the documentation was not clear. The gcloud builds submit --tag gcr.io/[PROJECT-ID]/helloworld command will
archive the contents of my source folder and then run the ...
4
votes
2
answers
7k
views
401 unauthorized error when opening the URL of my Google Cloud Run service
I built a sample container(sample of Go, https://cloud.google.com/run/docs/quickstarts/build-and-deploy) and deployed to cloud run (I unchecked "allow unauthenticated invocations").
However, when I ...
12
votes
1
answer
5k
views
How to run WordPress on Google Cloud Run?
Google Cloud Run is new. Is it possible to run WordPress docker on it? Perhaps using gce as database for the mysql/mariadb. Can't find any discussion on this
51
votes
5
answers
36k
views
Deploying to Cloud Run with a custom service account failed with iam.serviceaccounts.actAs error
I have created a custom service account travisci-deployer@PROJECT_ID.iam.gserviceaccount.com on my project and gave it the Cloud Run Admin role:
gcloud projects add-iam-policy-binding "${PROJECT_ID}" ...
11
votes
2
answers
11k
views
What's the value proposition of running Cloud Run versus a normal service in GKE?
Is there any advantage if I use Cloud Run instead of deploying a normal service/container in GKE?
1
vote
0
answers
342
views
Can't add CloudRun as add-on when creating a GKE cluster
I'm trying out Cloud Run with GKE, was wondering about this error:
ERROR: (gcloud.beta.container.clusters.create) argument --addons:
CloudRun must be one of [HttpLoadBalancing, ...
4
votes
1
answer
5k
views
Google Cloud Run - how to set 'Access-Control-Allow-Origin' header?
I'm setting up my first application on Google Cloud Run and now want to connect the server with my website. However I've run into CORS issues.
I tried fixing it in my code by using flask_cors. I can ...
12
votes
4
answers
3k
views
Firebase Hosting rewrite doesn't redirect to Google Cloud Run
I am setting up a redirect(rewrite) with my firebase hosting so that I can call an api that is running from google cloud run here.
I have tried changing the rewrite string from "/api/**" (...
6
votes
1
answer
919
views
Protect an unauthenticated Cloud Run endpoint
when I make an unauthenticated (public) Cloud Run endpoint to host an API, what are my options to protect this endpoint from malicious users making billions of HTTP requests?
For $10 you can launch ...
5
votes
1
answer
2k
views
How to redirect all http traffic to https in Google Cloud Run
I have a simple containerized web app (Nginx serving HTML and Javascript) that I deployed to Google Cloud Run.
The problem is, I can't seem to force HTTPS connections even though I already verified ...
82
votes
7
answers
28k
views
When to use Google App Engine Flex vs Google Cloud Run
I want to deploy containerized code using one of Google's serverless options. From what I understand Google has two options for this:
Google App Engine Flexible Environment
Google Cloud Run (in beta)
...
25
votes
3
answers
17k
views
How to securely connect to Cloud SQL from Cloud Run?
How do I connect to the database on Cloud SQL without having to add my credentials file inside the container?
3
votes
2
answers
4k
views
Cannot deploy to Cloud Run, `Internal error encountered`, suggestions?
I can't deploy to Cloud Run, via gcloud CLI nor the GCP web console. Both give very unhelpful errors.
Here is the output from the gcloud CLI:
Deploying container to Cloud Run service [ihsw-nginx] in ...
2
votes
2
answers
3k
views
Docker container upload to gcp cloud-run with core web api app not working
Trying to upload a docker image with dotnet core webapi project.
A requirement of cloud run is that it is listening on port 8080.
I believe I am doing that but when I create a cloud-run service ...
68
votes
13
answers
127k
views
Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable
I built my container image, but when I try to deploy it from the gcloud command line or the Cloud Console, I get the following error: "Container failed to start. Failed to start and then listen on the ...
8
votes
2
answers
16k
views
403 "Error: Forbidden" when opening the URL of my Cloud Run service
I built my container image and then deployed to Cloud Run using the Cloud Console. However, when I open the endpoint URL of my service, I get a 403 "Error: Forbidden" page
2
votes
3
answers
2k
views
What is the correct way to map one custom-domain to many services?
The instructions for mapping-custom-domains with GKE with Cloud Run works fine for a 1:1 domain:service mapping. But what if I want to have, 1:M domain:services and match with the URI,
myapp.com/...
7
votes
4
answers
7k
views
Container manager keep terminate container on signal 9
I am trying to play with Google Cloud Run, I have the same service that works fine in App Engine Flex. Any thoughts what could be the issue?
Somehow it shows that service is healthy.
1
vote
1
answer
128
views
Talking to Google APIs from Go hangs
Following the examples here, the code seems to hang making the https connection via gRPC to Google APIs.
The same code works on App Engine Go1.11 and App Engine Flex. Here is my Dockerfile
# Use the ...
3
votes
1
answer
1k
views
Is Cloud Run limited by cold starts and maximum execution length?
When using cloud functions we have the limitations related to cold starts and the maximum execution length of 9 minutes. Does any of these limitations also exist on Google Cloud Run?
7
votes
1
answer
2k
views
Why does enabling the Cloud Run API create so many service accounts? Why do they have so many privileges?
Enabling the Cloud Run API (dev console→Cloud Run→Enable) creates five service accounts. I want to understand their purpose. I need to know if it's my responsibility to configure them for least ...
2
votes
1
answer
366
views
Cloud Run serverless eventing
Cloud Run is related to the "serving"(HTTP) capability of Knative. Are there plans to implement the "eventing" capabilities? There a PubSub source for "eventing" but it needs to run on a k8s cluster ...
28
votes
4
answers
11k
views
What is the difference between Google App Engine and Google Cloud Run?
Does anyone know, difference between Google App Engine Flex and Google Cloud Run?
Thanks
9
votes
2
answers
8k
views
What predefined IAM roles does a service account need to complete the Google Cloud Run Quickstart: Build and Deploy?
I want to compare Google Cloud Run to both Google App Engine and Google Cloud Functions. The Cloud Run Quickstart: Build and Deploy seems like a good starting point.
My Application Default ...
1
vote
1
answer
3k
views
cloud run deploy fails with permission error
Running gcloud beta run deploy --image gcr.io/mynippets-dev/web:latest when gcloud project is set to 'mysnippets-dev' returns the following:
ERROR: (gcloud.beta.run.deploy) Google Cloud Run Service ...
2
votes
1
answer
2k
views
How do I run my Cloud Run service locally?
I have the following simple Cloud Run service from the Python quickstart:
app.py:
import os
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello ...