Open jayabalan1992 opened 1 year ago
Thanks for raising this - this is an issue due to K8S moving auth plugins out of tree^1. We will probably want to add the gke-gcloud-auth-plugin
to the image, but AFAIK gke-gcloud-auth-plugin
is only distributed as part of the Python Google Cloud SDK, which has a lot of dependencies and would be a bit of PITA to add to our otherwise clean and tiny image.
One option seems to be to put back the gcp auth library (see ^2), and generate credentials with USE_GKE_GCLOUD_AUTH_PLUGIN=False
.
Seems to me that none of these options are good. On one side we will have to include whole Python + Cloud SDK stack -> big image, with tons of stuff we don't need, or we would require users to regenerate their config with the above variable.
Atm. I don't see an easy way out.
Oh - looks like a good soul has rewritten the auth plugin in Go ^1. Fix for this would then be easy - add this binary to the container. I haven't tested it, so I guess it depends on if it really is a drop-in replacement for the official plugin.
This issue has not seen any activity in last 60 days, and has been marked as stale.
This issue was closed because it has been stalled for 90 days with no activity.
This should not be closed, I ran into the same error and it makes this tool unusable with GKE
Note: kubent:1.0 is the image I locally built from the Dockerfile given in this repo with platform=linux/arm64
I tried to mount the gcloud local directory ( -v "${HOME}/.config/gcloud:/root/.config/gcloud") as volume into the container but that didn't help. How can I pass gcloud auth creds inside the container?