Skip to content

red-lichtie/homelab-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up a high availability SoHo cluster

Very much work in progress, but release early and release often . . .

The goal of this project is to learn Kubernetes and at the end of the day, to have a high availability mini cluster for SoHo tasks. So the result is not so much directed to a 'Home Lab' but more in the direction of 'Self Hosting', a blurry line to be sure. But you don't really need HA for a home lab.

Let me get one thing out if the way first: I am only providing this information as a guide, use it at your own risk. I am not responsible for anything that happens to you, your property and especially your data.

Cluster image

IMPORTANT!

I am assuming that anyone attempting this kind of cluster, has a good level of technical knowledge, so I'll only be detailing information relevant to the pitfalls I encountered getting the cluster up and running.

Software

I am using Infrastructure as Code where ever possible to have a repeatable configuration.

I also use software from the Cloud Native Computing Foundation (CNCF) projects where ever possible. Check out the CNCF Cloud Native Interactive Landscape to see what is available.

With the various pieces of the hardware in place and bootable, time to get the server up and running and start installing the infrastructure.

Building the cluster

  1. Virtual Machines - Proxmox VE
  2. Cluster configuration - Gitea Server
  3. Infrastructure as code (OpenTofu) - Creating the virtual machines for the Kubernetes nodes
  4. Configuring a Talos based Kubernetes cluster
  5. Bootstrapping the cluster using Flux CD
  6. Cluster certificate management with Cert-Manager
  7. Setting up the network with cilium
  8. Adding a cluster hosted DNS server
  9. Attaching storage
  10. Database management using database operators
  11. Setting up the first applications

Inspiration and references:

All of these creators are an absolute wealth of knowledge and gave me a ton of inspiration to do this project.

I wholeheartedly und unreservedly, recommend you subscribe to them all!

Back up your data!

Now you are self-hosting, you are the system administrator, so don't forget to back up your data!

Proxmox allows you to configure snapshots and automated backups, configure and use them.

Don't forget the 3-2-1 rule - Have a minimum of 3 backups, 2 local on separate devices and 1 offsite!


Bill Mair Original document

About

Building a homelab cluster with Proxmox and Kubernetes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published