When executing a kubectl command, the error below is returned
$ kubectl get nodes
E0515 15:07:36.791886 24915 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials
E0515 15:07:36.815599 24915 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials
E0515 15:07:36.831702 24915 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials
E0515 15:07:36.844320 24915 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials
E0515 15:07:36.855427 24915 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials
error: You must be logged in to the server (the server has asked for the client to provide credentials)
All users cannot access the cluster and get the same error above.
The error message is return when the kube-apiserver fails to authenticate request
Tanzu Kubernetes Grid Integrated
TKGI Using OIDC Provider
A certificate rotation was performed prior to the error.
For some reason the /var/vcap/jobs/kube-apiserver/config/oidc-ca.pem was not updated with the "pks upgrade-cluster"
To confirm:
Upgrade cluster by executing
pks upgrade-cluster <cluster-name>
or
tkgi upgrade-cluster <cluster-name>
If the above does not resolve your issue then please open a ticket with TANZU Support to troubleshoot further.