Quantcast
Channel: Rob V IT
Viewing all articles
Browse latest Browse all 64

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

$
0
0

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:

sudo run swapoff -a

Disable swap ubuntu forever:

sudo nano /etc/fstab
# Comment-out the line which contains the word swap.

Disable swap raspbian:

sudo swapoff -a
sudo chmod -x /etc/init.d/dphys-swapfile

The post Kubernetes The connection to the server :6443 was refused – did you specify the right host or port? appeared first on Rob V IT.


Viewing all articles
Browse latest Browse all 64

Trending Articles