-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no longer works on Cloud Run on GKE #42
Comments
My suspicion is that our Region detection causes this.
as there's |
I'm not sure why it worked before though, but looking at the code it must be something related to metadata. I will investigate further later tonight and report back. |
I mean my comment alone explains at least why it doesn't work. Other variables that trigger this situation seem like they work fine on a VM environment. |
Yeah you were spot on. I verified by doing another test this time with GKE_METADATA and workload identity enabled. These commands were run from the application pod:
I'm going to try create a quick fork that doesn't get the region and see if the rest still works as is. Thanks so much for the pointers saved me a lot of time debuggin this. |
This samos123/cloud-run-hello@5584ed7 fixed the issue for Cloud Run on GKE as hacky workaround. I will provide a cleaner fix and submit PR later this week. |
Needed to query /zone (because VMs run in zones). Fixes GoogleCloudPlatform#42. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Needed to query /zone (because VMs run in zones). Fixes GoogleCloudPlatform#42. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
make Cloud RUn for Anthos work Fixes #42. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Steps to reproduce:
That curl returns the following:
In previous versions of this image ~6 months ago, the exact same steps did not return This container does not seem to be running on cloud run. So something must have changed on the Cloud Run side or in this image.
The text was updated successfully, but these errors were encountered: