Installing a bare-metal Kubernetes cluster with Ansible

tjtharrison
4 min readSep 4, 2023

In a previous article (Setting up homelab 3.0) I described the initial installation of the latest iteration of my home lab environment running Kubernetes on 3x HP 800 G2 small form factor machines.

In this article, I’m going to be explaining in greater detail the process for installing Kubernetes with a few additional packages for better redundancy and easier accessibility from your network.

The Ansible project I used for deploying Kubernetes onto my new machines can be found here:

Photo by Growtika on Unsplash

Server provisioning

As there were only 3 machines to set up, I thought it would be overkill to do any disk cloning tool solutions (eg CloneZilla which I have used for larger projects in the past) so simply decided to download the latest LTS iso of Ubuntu from their download website and burn this onto a USB drive and complete the install manually on the servers.

While going through the installation process I set the hostname of the machines to their intended function within the cluster with static…

--

--

tjtharrison
tjtharrison

Written by tjtharrison

DevSecOps | Security | Infrastructure

Responses (2)