I've had a few encounters with OCP and OKD for a bit of time now so I thought I might as well write a short guide on how to set up a Cluster in your homelab. I'll be using the UPI Method, meaning I'll have to stand up the infrastructure myself but this allows me for more flexibility down the road.
This is a rough schematic of what we'll be working on:
Some Prerequirements:
- a functional FreeIPA setup which will be used for DNS
- a working dhcpd instance to reserve fixed addresses based on the mac addresses of all coreos nodes
- two helper nodes for HAProxy, Keepalived and HTTPD to host files required by the installer
- three control plane (master) nodes
- at least two worker nodes
This is the (virtual) hardware sizing used for my cluster:
- helper nodes:
- vCPU: 2
- RM: 2048MiB
- Disk: 32GB
- control plane nodes:
- CPU: 8
- RAM: 16384MiB
- Disk: 128GB
- worker nodes:
- CPU: 8
- RAM: 16384MiB
- Disk: 128GB
So there's definitely a bit of hardware involved to satisfy these requirements.
This tutorial is split into multiple parts:
- part 1 - dns setup with freeipa
- part 2 - dhcp setup using dhcpd
- part 3 - haproxy on the helper nodes
- part 4 - httpd on the helper nodes
- part 5 - keepalived on the helper nodes
- part 6 - okd prep and bootstrap
- part 7 - finalizing the setup process
Please note that parts 3 and 4 should be run on all helper nodes in order to have a full HA Setup with the helper nodes.
Feel free to comment and / or suggest a topic.
Comments
Post a Comment