Report this

What is the reason for this report?

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

Posted on March 19, 2020

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?



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!

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.

Hi,

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.

Regards,

John Kwiatkoski Senior Developer Support Engineer - Kubernetes

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.