google-cloud-run

readiness check for google cloud run - how?

你。 提交于 2020-05-29 04:28:30
问题 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 couldn't find anything in https://cloud.google.com/sdk/gcloud/reference/beta/container/clusters/create about it either. EDIT2: I'm looking for a way to make Google cloud run have a readiness check for my app in a container. The same way that

Google Cloud Run Authentication Service-to-Service

放肆的年华 提交于 2020-05-27 06:14:46
问题 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 implemented the instructions from GCP Cloud Run docs on Authenticating service-to-service (https://cloud.google.com/run/docs/authenticating/service-to-service) but service-one.myDomain.com is unsuccessful in calling service-two.myDomain.com receiving a

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

坚强是说给别人听的谎言 提交于 2020-05-17 06:12:45
问题 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 on Compute Engine and on Cloud Run because the default credential is gotten from the metadata server. But, on my local environment, I need to use a service account key file for achieving this. (for example, when I set the GOOGLE_APPLICATION

How to access GCP Secret Manager from Angular 9 web app service

南笙酒味 提交于 2020-04-30 06:32:10
问题 I am having Angular service (Cloud Run fully managed) from which I would like to access 'googleapis' Secret Manager API with HTTP client call. The problem is I do not find a way to get the current service account's auth token that I can further use into the Authorization header field. This is an approach to use Secret Manager API, but I can change this with possible other solutions too unless it is working from the Agular app. Thanks a lot in advance. 回答1: I found a conceptual solution to the

Google Cloud Run OAuth2 Authentication with PKCE

会有一股神秘感。 提交于 2020-04-18 06:13:57
问题 I need to authenticate a service account (with container invoke role) in Cloud Run with PKCE. Basically my iOS app sends HTTPS requests to invoke certain Cloud Run Container (with Django Rest Framework). I found this example (which authenticates to the Cloud Run endpoint via self-signed JWT in exchange for token). This is exactly what I need, but I want to add PKCE. I'm confused as to where do I send code_verifier and code_challenge? If I do the verification in my container, how would that

Google Cloud Run OAuth2 Authentication with PKCE

这一生的挚爱 提交于 2020-04-18 06:13:03
问题 I need to authenticate a service account (with container invoke role) in Cloud Run with PKCE. Basically my iOS app sends HTTPS requests to invoke certain Cloud Run Container (with Django Rest Framework). I found this example (which authenticates to the Cloud Run endpoint via self-signed JWT in exchange for token). This is exactly what I need, but I want to add PKCE. I'm confused as to where do I send code_verifier and code_challenge? If I do the verification in my container, how would that

Google Cloud Metrics and MicroMeter JVM reporting (is this a Micrometer bug or?)

有些话、适合烂在心里 提交于 2020-04-18 05:47:07
问题 I finally got Micrometer(and it's JVM metrics) working in Google cloud by making the instance of cloud run of type Generic Task which allows me then to focus on the whole 'named' cluster of things so I can separate out production, or other clusters since they are called prod_name and staging_name. Now, it seems micrometer is reporting metrics with tags (instead of just changing the name of the metric) and google can't seem to separate out those tagged metrics to aggregate that stat in GCP. I

Google Cloud Metrics and MicroMeter JVM reporting (is this a Micrometer bug or?)

妖精的绣舞 提交于 2020-04-18 05:46:30
问题 I finally got Micrometer(and it's JVM metrics) working in Google cloud by making the instance of cloud run of type Generic Task which allows me then to focus on the whole 'named' cluster of things so I can separate out production, or other clusters since they are called prod_name and staging_name. Now, it seems micrometer is reporting metrics with tags (instead of just changing the name of the metric) and google can't seem to separate out those tagged metrics to aggregate that stat in GCP. I

Can not deploy any revisions (old or first) to Cloud Run

浪子不回头ぞ 提交于 2020-04-17 22:15:15
问题 "Cloud Run error: Internal system error." This errors and only this errors keeps coming when trying to deploy a revision (new or first) What is going on with Cloud Run? Their page won't load from GCP (though I can get in via google search) and I cannot deploy any revision without getting this error The container works locally 回答1: It seems to be a temporary issue in the platform. You can check it in google cloud status webpage. We've received a report of an issue with Cloud Run. Both Cloud

Can not deploy any revisions (old or first) to Cloud Run

自古美人都是妖i 提交于 2020-04-17 22:13:58
问题 "Cloud Run error: Internal system error." This errors and only this errors keeps coming when trying to deploy a revision (new or first) What is going on with Cloud Run? Their page won't load from GCP (though I can get in via google search) and I cannot deploy any revision without getting this error The container works locally 回答1: It seems to be a temporary issue in the platform. You can check it in google cloud status webpage. We've received a report of an issue with Cloud Run. Both Cloud