Pibernetes - via microk8s and via Rancher
1 minute read
MicroK8s Flavour
on new pi
- Image a microsdcard with ubuntu 64 bit pi image; boot & wait for cloud-init
hostnamectl set-hostname 'pi-slice-n'
`adduser
usermod -aG sudo
sudo snap install microk8s --classic
snap info microk8s
on primary node`
sudo microk8s.add-node
on new node
sudo microk8s.join :/
Done
Rancher Flavour
On Rancher Box
sudo docker run --privileged -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
- Once docker running, nav to ‘add cluster - custom’
- Once at ‘Customize Node Run Command’; generate start commands:
- at least one of each of
etcd
,control plane
,worker
- one node can be all three
- at least one of each of
EG:
- One node as [
etcd
,control plane
] - One node as [
worker
]
On Each pi node
sudo snap install docker.io
- Copy ‘registration command’ from Rancher + run on each box
Back to Rancher Box
- Observe nodes being added to cluster!
Refs
1: How to build a Raspberry Pi Kubernetes cluster using MicroK8s —
I feedback.
Let me know what you think of this article on twitter @klc_!
Let me know what you think of this article on twitter @klc_!