Skip to main content

Setup master and worker node ready

Setup VPS and install docker

Refer: https://projects-srv2.kondgekar.com/projects/cbofferwall/wiki/0000-preliminary-setup

Fix swap

Installing kubernetes needs swap should be disabled. Check if swap is enabled and then disable if swap is enabled.

Disable swap

sudo swapoff -a

Remove / comment out respective swap entry from fstab file

sudo nano /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=f1b6db43-01e1-4851-a53e-b0c4eee7d6a7 /               ext4    errors=remount-ro 0       0
# /boot was on /dev/sda1 during installation
UUID=12f6445c-9ef7-440f-bccc-600023baf92b /boot           ext4    defaults,noatime        0       0
#/swapfile                                 none            swap    sw              0       0