Skip to content
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

intermittent errors from client informer #1345

Open
LinMoskovitch opened this issue Apr 4, 2024 · 0 comments
Open

intermittent errors from client informer #1345

LinMoskovitch opened this issue Apr 4, 2024 · 0 comments

Comments

@LinMoskovitch
Copy link

LinMoskovitch commented Apr 4, 2024

Hi,
We are facing sporadic "Unauthorized" issues in k8s go-client creation:

pkg/mod/k8s.io/client-go@v0.28.5/tools/cache/reflector.go:229: Failed to watch <resource_kind>: the server has asked for the client to provide credentials (get <resource_kind>)

log: pkg/mod/k8s.io/client-go@v0.28.5/tools/cache/reflector.go:229: Failed to watch <resource_kind>: failed to list *<resource_kind>: Unauthorized

  • expirationSeconds is configured to 10m, and the credentials rotation is configured to 80% of the expiration time (=480sec).

We tried to replicate the issue in actual code flow using the following steps but had no luck:

  • We created multiple clients on the same secret and requested various resources.
  • We attempted to reduce the expirationSeconds to less than 10m.

Has anyone else encountered this kind of issue? If so, do you have any suggestions on how to resolve or investigate it?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant