-
Notifications
You must be signed in to change notification settings - Fork 74
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
Mistaken auth header name #27
Comments
I am getting the same error. Unfortunately, even the workaround provided above doesn't seem to work for me.
am I missing something ? Is there any fix in progress ? Thanks, -SR |
I found issue why the above workaround was not working. The ClusterRoleBinding was not applied to the role in the namespace the pod was running. Now that I have added, the workaround is working and I am able to reach the API Server. |
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. |
Problem
Even if correct ServiceAccount access was established(ServiceAccount + ClusterRoleBinding + ClusterRole or ServiceAccount + RoleBinding + Role) and the pod was referring to the serviceAccountName, the pod still cannot call k8s api inside the cluster(403 Forbidden from k8s api server). e.g.
Code to call the k8s api:
Temporary Fix
Simple, I just replaced the original header with another header name(Authentication->Authorization), and the api call succeeded:
Question
Is there anything wrong with my client code or is this an issue of kubernetes-client?
The text was updated successfully, but these errors were encountered: