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
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?
The text was updated successfully, but these errors were encountered:
Thanks for raising this - this is an issue due to K8S moving auth plugins out of tree1. 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.
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.
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?
The text was updated successfully, but these errors were encountered: