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

Posted March 19, 2020 1.8k views

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?

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.

Submit an Answer
1 answer


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

  • Thank you for the answer. Unfortunately that was not the case. I need to find another solution.

    1. I still have an access to Kubernetes Dashboard (via Digital Ocean dashboard) - is there any way so I can generate new auth data directly from Kubernetes Dashboard?

    2. I have still access to the droplet where Kubernetes Cluster is running on - is there any way so I can at least check what is wrong there? What should I look for?

    • If you open a support ticket I can take a closer look at your master and see what is going on.


      John Kwiatkoski
      Senior Developer Support Engineer - Kubernetes