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:
1 |
sudo run swapoff -a |
Disable swap ubuntu forever:
1 2 |
sudo nano /etc/fstab # Comment-out the line which contains the word swap. |
Disable swap raspbian:
1 2 |
sudo swapoff -a sudo chmod -x /etc/init.d/dphys-swapfile |