google-cloud-run

Creating endpoint in cloud run with Terraform and Google Cloud Platform

[亡魂溺海] 提交于 2020-08-06 05:44:30
问题 I'm research for a way to use Terraform with GCP provider to create cloud run endpoint. For starter I'm creating testing data a simple hello world. I have resource cloud run service configured and cloud endpoints resource configured with cloud endpoints depends_on cloud run. However, I'm trying to pass in the cloud run url as a service name to the cloud endpoints. File are constructed with best practice, with module > cloud run and cloud endpoints resource. However, the Terraform

Creating endpoint in cloud run with Terraform and Google Cloud Platform

↘锁芯ラ 提交于 2020-08-06 05:43:51
问题 I'm research for a way to use Terraform with GCP provider to create cloud run endpoint. For starter I'm creating testing data a simple hello world. I have resource cloud run service configured and cloud endpoints resource configured with cloud endpoints depends_on cloud run. However, I'm trying to pass in the cloud run url as a service name to the cloud endpoints. File are constructed with best practice, with module > cloud run and cloud endpoints resource. However, the Terraform

How to allow CORS in google cloud run?

蓝咒 提交于 2020-07-23 09:11:31
问题 I have a react microservice (via nginx) deployed onto google cloud run with its environment variable for the backend set to another google cloud run instance that's running gunicorn which is serving the backend. My Flask app is set up following everything I could find about allowing CORS: app = Flask(__name__) app.config.from_object(config) CORS(app, resources={r"/*": {"origins": "*"}}) app.config['CORS_HEADERS'] = 'Content-Type' return app # Different file, a blueprint's urls: @blueprint

Does Google Cloud Run memory limit apply to the container size?

和自甴很熟 提交于 2020-07-09 05:59:31
问题 For cloud run's memory usage from the docs (https://cloud.google.com/run/docs/configuring/memory-limits) Cloud Run applications that exceed their allowed memory limit are terminated. When you configure memory limit settings, the memory allocation you are specifying is used for: Operating your service Writing files to disk Running binaries or other processes in your container, such as the nginx web server. Does the size of the container count towards "operating your service" and counts towards