Raspberry Pi Kubernetes Cluster — OS Installation| Issue #2

Julian Tellez
2 min readSep 9, 2022

--

Welcome to the Raspberry PI Kubernetes home lab series. A bite sized informative guide to help you provision a cluster from scratch.

1. Install Ubuntu on a Raspberry Pi

The Raspberry PI nodes are provisioned using Ubuntu 22.04 LTS for ARM. Download and unzip the iso image from the link.

Install Ubuntu

2. Locate the SD card

Diskutil provides information about formats of disks which include disk images.

diskutil list
my terminal :)

3. Unmount the disk

diskutil unmountDisk /dev/disk2

Unmount the disk so you can write onto it. Note that unmount is not the same as eject. unmount means to remove the connection to the disk internally, eject means to physically remove it.

4. dd the image into the disk

sudo dd if=<path-to-image>/raspbian.img of=/dev/rdisk2 bs=1m

It is important that you set up the block size read/write buffering to optimise the overall time of the task.

5. Enable ssh

touch /Volumes/system-boot/ssh

SSH needs to be enabled so we can talk to the nodes later

6. Unmount and eject/remove card

diskutil unmountDisk /dev/disk2

Leave a comment if you have any questions, we will be installing and preparing the nodes next. Happy Coding.

← Previous Issue : Equipment | Issue #1

--

--