Raspberry Pi 4 and microk8s setup

# emacs /boot/firmware/cmdline.txt
cgroup_enable=memory cgroup_memory=1
# grep mem /proc/cgroups | awk '{ print $4 }'
# snap install microk8s --classic --channel=1.20/stable
# usermod -aG microk8s ubuntu
# microk8s.enable dns dashboard storage
$ microk8s.start
$ microk8s.status
microk8s is running
cilium: disabled
dashboard: enabled
dns: enabled
fluentd: disabled
gpu: disabled
helm: disabled
ingress: disabled
istio: disabled
jaeger: disabled
juju: disabled
knative: disabled
kubeflow: disabled
linkerd: disabled
metallb: disabled
metrics-server: disabled
prometheus: disabled
rbac: disabled
registry: disabled
storage: enabled
$ ssh -L 8001:localhost:8001 ubuntu@rpi
$ microk8s.kubectl proxy --accept-hosts=.\* --address=
$ token=$(microk8s.kubectl -n kube-system get secret | grep default-token | cut -d " " -f1)
$ microk8s.kubectl -n kube-system describe secret $token





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Boardwalks 32nd Anniversary Party

Top 10 Cloud Native Software Development Company

A Friendly Guide To Automate Deployment For Node.js Apps With Git Hooks

Anaconda Tips & Tricks — Series

ST*U and listen: Starting as an architect at willhaben

Implementing Bursting feature for HCM Extract

Try This API To Get Palm Oil Rates In USD

Yet Another Uni-Directional State Flow Architecture in Android

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store



More from Medium

Installing Ubuntu over 17000 KM distance using MAAS, VxLAN & Tailscale

Build Kubernetes clusters using Sidero Metal & Talos Linux on Raspberry Pi

Production like Kubernetes on Raspberry Pi: Ingress

Mini Private Cloud at Every Household