This unexpectedly happened today after working seamlessly for at least half a year. kubectl
calls to all my GKE clusters are returning:
Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2021-03-10T15:02:50+02:00 is after 2020-07-24T00:21:03Z
I tried rerunning gcloud auth login
and re-retrieving the cluster creds with gcloud container clusters get-credentials
... Nothing works.
I tried manually running gcloud config config-helper
and this actually shows that the token exipred about an hour ago...
But I couldn't understand why.
What am I missing?