Home Kubernetes cluster
Want to learn and/or experiment with kubernetes but minikube is not enough? Then the best way is to have a real cluster of your own. On your home PC, out of charge.
All you need is some basic Linux knowledge and a PC with at least 6GB of RAM.
The setup in this post uses virtual machines for the cluster nodes, run by Oracle VirtualBox.
The OS of the nodes is Ubuntu Server 22.04.
The version of Kubernetes is 1.24.3.
It was tested on a Windows 10 Host (but should work on any OS, supported by Oracle VirtualBox).
Create a virtual machine and install Ubuntu Server
9. Download the .ISO image of Ubuntu Server and load it in the optical drive, under Storage - Controller: IDE.
10. Start the virtual machine (normal start). Select "Try or Install Ubuntu Server" when loaded. Choose your language and desired keyboard layout.
12. Confirm the IP settings, proxy (empty), the mirror, use the entire disk space and confirm the file system summary.
15. Install OpenSSH server. It makes it much easier to work with the VMs later. If you have a github account with a SSH key, you can directly import it for a passwordless access.
17. Start the installation and reboot when it's finished. You will get a message to eject the CD and possibly an error saying that "it could not be ejected automatically". Just press Enter.