Kubernetes - The not so hard way
Welcome to a short guide to set up a "bare metal" (:metal:) stand-alone Kubernetes cluster !
If you want to sandbox your own Kubernetes cluster, without any AWS, GCP or Azure account, let's go.
What we need, 2 servers, with different IP in the same network :
- 1 server, as ControlPlane #1, aka our planemaster
- OS : Debian
- CPU Cores : 2 or more
- Minimal RAM : 2 Go
- Optionally, without Swap (we will disable it if there's one)
- Sudo
- A sudoer user :)
- 1 server, as Pod #1
- Same as PlaneControl, but
- Minimal RAM : 4 Go
- Optionnaly, without Swap
Kubernetes picked(/opinionated) options :
- Container : Containerd (yes, without Docker)
- Network Add-on : Weaver
Tested on 2021-07-05, with Kubernetes 1.21
All servers are meant to be executed on all servers.
π£ (All servers) First, let's disable the Swap
π£ (All servers) Initial setup before Kuberneting
π£ Kubernetes initialisation: Init PlaneControl
π£ Kubernetes initialisation: Add a Pod
π£ Kubernetes Dashboard