News for hackers. Stuff that matters.
Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by amzans on Monday November 22, 2021 @10:34AM (#29307452)
Hey! I'm the author of the post, glad you enjoyed it!

Yes, you would just attach it to the network switch and have it join the cluster.

The control plane will "discover" the additional capacity and redistribute workloads if necessary.

With k3s, a new node can join the cluster with a single command (assuming you have the API token).

Something like:

  $ curl -sfL https://get.k3s.io | K3S_URL=https://$YOUR_SERVER_NODE_IP:6443 K3S_TOKEN=$YOUR_CLUSTER_TOKEN sh -
Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by zzyzxd on Monday November 22, 2021 @11:38AM (#29308339)
One disadvantage of k3s, is that it does not have HA control plane out of box (specifically, users are expected to bring their own HA database solution[1]). Without that, losing the single point of failure control plane node is going to give you a very bad day.

I use kubespray[2] to manage my raspberry pi based k8s homelab, and replacing any nodes, including HA control plane nodes, is as easy as swapping the board and executing an ansible playbook. The downsides of this, are that it requires the users to have more knowledge about operating k8s, and a single ansible playbook run takes 30-40 minutes...

1. https://rancher.com/docs/k3s/latest/en/installation/ha/

2. https://github.com/kubernetes-sigs/kubespray

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by yankcrime on Monday November 22, 2021 @12:01PM (#29308642)
> One disadvantage of k3s, is that it does not have HA control plane out of box

This hasn't been true for a while, since these days K3s ships with etcd embedded: https://rancher.com/docs/k3s/latest/en/installation/ha-embed...

Re:Building a bare-metal Kubernetes cluster on Raspberry Pi by zzyzxd on Monday November 22, 2021 @12:16PM (#29308855)
Thanks for the info. I haven't been following k3s development after I decided to switch to kubespray. Glad that this concern has been addressed. Nice work!