kubernetes / client-go

Go client for Kubernetes.
Apache License 2.0
8.78k stars 2.9k forks source link

intermittent errors from client informer #1345

Open LinMoskovitch opened 3 months ago

LinMoskovitch commented 3 months ago

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

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

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

Thanks.

k8s-triage-robot commented 5 hours ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale