By luk4sz
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.