10 Minutes to K3s on Raspberry Pis

You’ll never look back

Jonathan Scott
Coming About
Published in
3 min readNov 30, 2020

--

Rancher’s K3s is by and large the best choice for deploying Kubernetes to a cluster of Raspberry Pis. K3s is a certified Kubernetes distribution with a focus on IoT devices. After completing this guide, you will have a fully functioning Kubernetes cluster.

Prerequisite

The only cost of entry to this guide is a cluster of Raspberry Pis. This guide will walk you though that.

Installing K3s

Step 1: Select a master node

The master node is the node that manages the worker nodes of the Kubernetes cluster. I suggest designating the Pi in the top layer of your cluster rack to keep things organized.

SSH into the node that you designated as the master node.

Step 2: Change the hostname of the master node

Type sudo raspi-config and adjust the hostname by following Network > Hostname. It is wise to give the name k3s-master-1.

Step 3: Enable container features on the master

Type sudo nano /boot/cmdline.txt and add the following to the end of the line.

--

--