On Prem setup RPI

Installation on Raspberry Pi


Install Docker

Install docker following the instructions from official docker wiki

Raspbian Convenience script from Docker

Static IP for master and node machines

All machines should be set to static ip either in router config or on the machines itself.

Disable swap

Kubernetes won’t let you install if swap is enabled. One way to disable swap on ubuntu machines if enabled:

  • Check if swap is enabled. If the below command returns empty we are good to proceed else disable swap.
sudo swapon --summary
  • Disable swap
sudo dphys-swapfile swapoff && \
  sudo dphys-swapfile uninstall && \
  sudo update-rc.d dphys-swapfile remove
  • Remove any swap entry from /etc/fstab

  • Check if swap is disabled again

sudo swapon --summary

Enable cgroup in boot Edit /boot/cmdline.txt or /media/boot/boot.ini for odroid Add below to end of command before rootwait

cgroup_enable=cpuset cgroup_enable=memory

Reboot Pi

Install and setup Kubernetes on master and slave nodes

Same as steps for Ubuntu in my earlier post except for dashboard url where we have to use the ARM version (Link below). Install kubernetes on Ubuntu Xenial

Kubernetes dashboard Step

kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/alternative/kubernetes-dashboard-arm.yaml