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
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.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: