Brian Brietzke / Bare-Metal Kubernetes: The Olympians

Created Mon, 23 Nov 2026 04:55:03 -0600 Modified Mon, 23 Nov 2026 04:55:03 -0600

I need to create a bare-metal kubernetes cluster. It will consistent of four physical machines, three workers and one control-plane. The control-plane node is named zeus, while the worker nodes are known as hera, hades and ares.

Networking

There will be two network adapters per machine.

One network will be private to kubernetes and will be there only to allow the kubernetes traffic to pass to other kubernetes nodes. This network will be designated the k8s0 network.

The other network will be there for normal network traffic directed at and for receiving traffic from the other nodes on the network. This network will be designated the lan0 network.

The worker machines also have a third network adapter in them. In this scenerio they will not be used.

The k8s0 network will have the network of 192.168.254.0/26. The lan0 network will be 192.168.3.0/24. The lan0 network also hosts dhcp for the other machines on the network.

DNS and the default gateway for the lan0 network will be 192.168.3.1. There will not be a DNS or a default gateway for the k8s0 network.

Hosts

The machines and IP addresses will be laid out as so:

Machine NameLast Octetk8s0 MAClan0 MACRoleStorage Node
ZEUS.9e8:ff:1e:dc:94:0000:e0:4c:f9:9f:b8Control Planefalse
ARES.1198:b7:85:23:34:1f98:b7:85:23:34:1eWorkertrue
HADES.1398:b7:85:23:2d:0198:b7:85:23:2d:00Workertrue
HERA.1798:b7:85:23:34:4b98:b7:85:23:34:4aWorkertrue

The first three octets of the network have been identified above. The only thing that will vary between machines during installation will the the last octet and that octet will be the same on both network adapters for that machine to make host identification easy. These addresses will be statically mapped in the netplan.

if the lan0 network matches the MAC address and IP, do not hard code the IP address through netplan, since that is configured through DHCP. The k8s0 network will need to be hard coded. If the lan0 network does not match, the scripts should stop processing to allow things to be fixed.

Each machine will have Ubuntu 26.04.1 installed on them.

There should be a check to make sure the host machines are fully updated with OS updates. If they are not, then the scripts should update them with all operating system upgrades before proceeding.

Storage

Drives /dev/sdb and /dev/sdc should be scrubbed and wiped of all partitions and contents in preperation for the installations for those nodes that are marked with storage node equals true.

The storage should be configured to use Rook.io/Cephfs on the emptied disks. Please see these prerequisites. Do not includes scripts to install rook/ceph, that will be done later by hand.

Kubernetes

Versions

Kubernetes should be set to the lastest and greatest ( 1.37.2 ), kube-VIP should use 1.3.1 and Cilium should use 1.20.5.

Kube-VIP

The control panel will run KUBEVIP to broadcast a virtual IP for the control plane. This address will be 192.168.3.5. It will only broadcast this address on the lan0 network. KUBEVIP should only be used to broadcast the control plane ip address, not provide an IP for any load balancers

CIDR Blocks

For Kubernetes itself, the Pod CIDR will be 10.254.0.0/22. The services CIDR will be 172.16.0.0/23. Each node will get a /25 CIDR from the above Pod CIDR block.

Labels

Each node will need to be marked with topology.kubernetes.io/zone of a value of olympians. The topology.kubernetes.io/region for each node will need to be HOME. The app.kubernetes.io/managed-by for each node should have a value of ansible.

Networking

The preferred CNI is Cilium and should be installed right after the control plane node comes up. It should live as it’s own script. Keep in mind that we are using a different pod CIDR that what Cilium expects and the installation script will need to be automatically changed to reflect that and prevent any conflicts.

The cluster id for Cilium should be one ( 1 ).

The Load Balancer IP Pool should start at 192.168.3.200 and have five IP addresses.

The Cilium client CLI should be installed on the control plane.

Specifics

What is needed is an Ansible playbook that will setup the cluster. This include validating the network, configuring the storage specifics if the node is a storage node.

If the role is control plane, then that node should automatically create a kubernetes cluster. It will then need to automatically create a Cilium CNI networking topology with the correct CIDR blocks as dictated above.

If the role is worker, it will need set it self up and then join the Kubernetes network that the control plane created.

There should be a simple way to rollback the installation, removing Kubernetes from the machines in case of a reset.

There should be a Makefile for executing the workflow. It should include commands for individual steps if something needs to be re-ran.

Additional commands are acceptable as long as the order of operations is provided in the README documentation.

Documentation will need to be provided, including a summary of what will be happening, the order that the scripts will need to be run in.