I cannot access my k8s cluster - DO configs do not work

Hello, Today I’ve upgraded my cluster to the version: 1.16.6-do.2. Now I am not able to access my k8s cluster.

I downloaded config file from DO dashboard, I also tried to use doctl tool to configure my kubectl, but the response is always the same:

doctl kubernetes cluster kubeconfig save xyz Notice: Adding cluster credentials to kubeconfig file found in “/home/xxx/.kube/config” Notice: Setting current-context to do-fra1-xyz kubectl get nodes Unable to connect to the server: x509: certificate has expired or is not yet valid

Do you know how can get my connection back?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


Can you try completely deleting /home/xxx/.kube/config and then rerunning that doctl command? Sometimes stale data can hand around in that file. Removing it will ensure there is nothing but the fresh file contents generated in there.


John Kwiatkoski Senior Developer Support Engineer - Kubernetes