how to install kubernetes on raspberry

Prerequisite

Static IP

1
2
3
4
5
6
7
8
9
10
11
# /etc/netplan/50-cloud-init.yaml

network:
ethernets:
ens192:
addresses: [ 192.168.0.101/24 ]
gateway4: 192.168.0.1
nameservers:
addresses: [ 8.8.8.8,1.1.1.1 ]
dhcp4: no
version: 2
1
sudo netplan apply

Enable cgroups limit support

1
sudo sed -i '$ s/$/ cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 swapaccount=1/' /boot/firmware/cmdline.txt

Installation

using kubespray

Results

cluster-pi