DEV Community

Cover image for Raspberry Pi Kubernetes Cluster: OS Installation (Issue #2)
Jules
Jules

Posted on • Originally published at juliantellez.com

Raspberry Pi Kubernetes Cluster: OS Installation (Issue #2)

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 image from the link.

2. Locate the SD card

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

diskutil list
Enter fullscreen mode Exit fullscreen mode

3. Unmount the disk

diskutil unmountDisk /dev/disk2
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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

5. Enable SSH

touch /Volumes/system-boot/ssh
Enter fullscreen mode Exit fullscreen mode

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

6. Unmount and eject/remove the card

diskutil unmountDisk /dev/disk2
Enter fullscreen mode Exit fullscreen mode

Leave a comment if you have any questions. We will be installing and preparing the nodes next, first manually and then in an automated fashion via Ansible. Happy coding.


First published in my LinkedIn newsletter, Built from Scratch.


This was originally published on juliantellez.com. It is part of my newsletter on video, streaming, and building reliable systems from scratch: the architecture, the tradeoffs, and the occasional 3am incident.

If it was useful, subscribe for the next one. No spam, unsubscribe anytime. If you are building something similar and want to compare notes, say hello. I read every message.

Built from scratch, like everything here.

Top comments (0)