-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Authentication fails to GCP: The OAuth client was not found #506
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
Comments
also this "config.load_kube_config()" will only works if you run your python script on a node where kube client is installed (if you can do a kubectl get pod and it works). |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
How the authentication should work against GCP Kubernetes (GKE)? There is no proper documentation and authentication is not mentioned nearly anywhere. For example how to handle multiple GCP projects and clusters? How to authenticate automatically to GKE?
I have installed latest Kubernetes Python client and GCP SDK. Without first running the
kubectl get pods
command authentication doesn't work with this client.config.load_kube_config()
command gives error:google.auth.exceptions.RefreshError: ('invalid_client: The OAuth client was not found.', '{\n "error" : "invalid_client",\n "error_description" : "The OAuth client was not found."\n}')
The text was updated successfully, but these errors were encountered: