Skip to content

MrkMrk00/homelab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Homelab

Hardware

thinkcentre cluster

The current configuration consists of 3 ThinkCentre M715q Tiny mini computers.

Node name CPU RAM Disk space
thinkcentre0 AMD Ryzen 3 2200GE 8 GB (1x8) 240 GB
thinkcentre1 AMD Ryzen 3 2200GE 16 GB (1x16) 240 GB
thinkcentre2 AMD Ryzen 3 2200GE 16 GB (1x16) 120 GB

Cost breakdown:

Item Cost Currency
3 x thinkcentre (without RAM and storage) 229.70
8 GB RAM stick 300.00 Kč (~ 13 €)
2 x 240 GB SSD 1000.00 Kč (~ 40 €)

The rest of the hardware I had lying around not being used.

Software (OS)

  • All of the nodes are running Proxmox VE.
  • Each node hosts a single Debian stable VM with most of the node's resources allocated to it.

The node thinkcentre0 runs the K3s Kubernetes distribution server instance. The cluster does not run etcd, instead it uses the K3s' built-in SQLite data store.

The other 2 nodes run agent instances.

base OS setup

This setup is heavily influenced and also highly motivated by: Dreams of Autonomy's Youtube video @elliottminns

Software (userland services?)

services loadbalancing

The rest of the setup can be seen in the files in this repository. Mainly helmfile.yaml. This respository mainly takes care of the architecture of the cluster, application deployment is done with ArgoCD.

The architecture part of the cluster consists of:

  • A MariaDB instance (deployed via MariaDB k8s operator),
  • Longhorn block storage system,
  • Traefik internal and public Ingress Controllers,
  • the cloudflared Tunnels connector,
  • and more...

TODOs

  • Gitea instance for CI/CD and a container image repository,
  • better storage solution (external NAS with RAID; shared via NFS?),
  • NextCloud, Matrix server, Fediverse stuff?,
  • improved logging and alerting (there's almost none currently),
  • a rack with better cooling / power management and monitoring, smart outlets?,
  • actually use it for projects :D.

About

A bare metal Kubernetes setup on 3 mini PCs. Proxmox, Debian VMs, k3s, ...

Topics

Resources

Stars

Watchers

Forks

Contributors