Reputation: 2879
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?
Upvotes: 0
Views: 981
Reputation: 2879
I didn't find the actual reason for this but what fixed it - was removing and then re-installing Google Cloud SDK as described here: https://cloud.google.com/sdk/docs/install
Upvotes: 1