Post

How to start K3S on Raspberry Pi3

Step-by-step guide to installing and running K3S on a Raspberry Pi 3, including cgroup configuration and Helm installation.

Reference: https://blog.alexellis.io/test-drive-k3s-on-raspberry-pi/

Before installing K3S, you need to enable 64-bit mode and cgroups on the Raspberry Pi. Verify the arm_64bit setting in /boot/config.txt and add the required cgroup kernel parameters to /boot/cmdline.txt. After rebooting, set environment variables to configure kubeconfig permissions and disable unnecessary components, then run the K3S installer. Finally, install Helm for managing Kubernetes packages.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cat /boot/config.txt  | grep "arm_64bit"
arm_64bit=1

vim /boot/cmdline.txt
...
cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
...
:wq!


export K3S_KUBECONFIG_MODE="644"
export INSTALL_K3S_EXEC=" --no-deploy servicelb --no-deploy traefik"

curl -sfL https://get.k3s.io | sh -

curl -L https://get.helm.sh/helm-v3.2.4-linux-arm64.tar.gz | tar -xvzf - --strip-components=1 -C /usr/local/bin/ linux-arm64/helm
This post is licensed under CC BY 4.0 by the author.