You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently have trouble connecting to my cloudsql instances using workload identity, and I don't understand the error message provided. This is the error I get:
2022/01/20 07:15:11 current FDs rlimit set to 1048576, wanted limit is 8500. Nothing to do here.
2022/01/20 07:15:11 errors parsing config:
Get "https://sqladmin.googleapis.com/sql/v1beta4/projects/maxxeed/instances/europe-west3~main-dev-testing2/connectSettings?alt=json&prettyPrint=false": metadata: GCE metadata "instance/service-accounts/default/token?scopes=https%!A(MISSING)%!F(MISSING)%!F(MISSING)www.googleapis.com%!F(MISSING)auth%!F(MISSING)sqlservice.admin" not defined
What does that mean exactly? I don't know how to debug this further.
with my KSA_NAME. I even added this container as a sidecar to cloudsql-proxy to test whether some other problem in my configuration of that deployment would cause issues, but I could run that curl command curl -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/, which returned two entries:
As far as I understand, I should only get one entry here, but I don't understand where the second may come from, and I suspect this may be the problem over here!?
This is the deployment definition that currently is running (and crashing); I extracted it from the cluster and removed a few fields around managedFields and status:
Any pointer much appreciated. Sorry if this turns out to be a generic workload identity problem - I find the cloudsql-proxy error message quite confusing though :-/.
The text was updated successfully, but these errors were encountered:
After rubberducking through every step, detailed and step-by-step, we found that I annotated the kubernetes service-account wrongly. This is how I should have annotated it:
Glad you figured it out. Getting workload identity setup is definitely tricky and the proxy's error message is pretty terrible. By the way, we are working on fixing the error messages as part of #872.
Question
I currently have trouble connecting to my cloudsql instances using workload identity, and I don't understand the error message provided. This is the error I get:
What does that mean exactly? I don't know how to debug this further.
Additional Context
The usual workload-identity tests work, as far as I can tell. I followed the steps in https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity#authenticating_to, including verifying that workload identity works for the set-up service account by running this pod:
with my KSA_NAME. I even added this container as a sidecar to cloudsql-proxy to test whether some other problem in my configuration of that deployment would cause issues, but I could run that curl command
curl -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/
, which returned two entries:As far as I understand, I should only get one entry here, but I don't understand where the second may come from, and I suspect this may be the problem over here!?
This is the deployment definition that currently is running (and crashing); I extracted it from the cluster and removed a few fields around
managedFields
andstatus
:Any pointer much appreciated. Sorry if this turns out to be a generic workload identity problem - I find the cloudsql-proxy error message quite confusing though :-/.
The text was updated successfully, but these errors were encountered: