Kubernetes The connection to the server :6443 was refused – did you specify the right host or port?

Posted by

In the following upcoming posts ill post some issues and resolutions in my journey installing a kubernetes cluster.

Kubernetes cluster is offline after rebooting the master.
When running: kubectl cluster-info , you get a message like above.

Mostly this is because you did not disabled the SWAP partition.
Kubernetes / docker is not designed to SWAP, it’s for high performance computing and all the deployments should be pinned with CPU/Memory limits.
When it reach a limit it should spin off a new node.

So disable SWAP so fast as you can with the following commands:
(not a linux expert, but working fine for the ubuntu distro I use).

Turn off swap ubuntu immediately:

Disable swap ubuntu forever:

Disable swap raspbian:

Leave a Reply

Your email address will not be published. Required fields are marked *