Skip to content

Instantly share code, notes, and snippets.

@tuananh
Last active October 8, 2021 14:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuananh/8787b30bd210c485101fd9230f6e7151 to your computer and use it in GitHub Desktop.
Save tuananh/8787b30bd210c485101fd9230f6e7151 to your computer and use it in GitHub Desktop.
microk8s on Raspberry Pi 4

How to install microk8s on Raspberry Pi 4

Enable cgroup

$ sudo vi /boot/firmware/cmdline.txt

Add the following and reboot

cgroup_enable=memory cgroup_memory=1

Install snap

$ sudo apt update
$ sudo apt install snapd
$ sudo snap download core

Ref: https://snapcraft.io/docs/installing-snap-on-raspbian

Install microk8s

$ sudo snap install microk8s --classic --channel=1.20/stable
$ sudo iptables -P FORWARD ACCEPT
@tuananh
Copy link
Author

tuananh commented Dec 19, 2020

Ubuntu server boot from usb is non-trivial, unlike raspberry os : https://www.raspberrypi.org/forums/viewtopic.php?t=278791

If you are using sdcard, then the above would work just fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment