Homelab / K3s

From wiki.jasonsnotes.com
Jump to navigation Jump to search

Homelab / k3s

The goal is to build a fully working kubernetes cluster on my homelab hardware.

Hardware Options

Lepton Hardware Characteristics
OS Model CPU RAM Storage
Fedora Linux Server 37 Dell Precision T3600 16x Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz DDR3 64Gb 512GB


Higgs Hardware Characteristics Fedora Linux Server 37
OS Model CPU RAM Storage
Fedora Linux Server 39 LENOVO Thinkstation P920 96x Intel(R) Xeon(R) Platinum 8160 CPU @ 2.10GHz DDR4 128Gb 8Tb /vm-spc

Higgs

Bare Metal VMs

Database
host details notes
db-m01.atomic.org debian bookworm, postgresql, 8GB RAM 50 GB disc Nov 1 2025 - installed VM
Nov 2 2025 - configured db for local network access
Nov 2 2025 - created railspguser with impossible password
Nov 2 2025 - created cookbook database, tested - railspguser can access database from local network host
Example Example Example
Appserver
host details notes
app-m01.atomic.org debian bookworm, postgresql, 8GB RAM 100 GB disc Nov 2 2025 - installed VM
Nov 2 2025 - setup ssh, sudo, bridged network, /etc/hosts app can see db
Nov 2 2025 - installed mise: https://docs.vultr.com/how-to-install-ruby-on-rails-on-debian-12
Nov 2 2025 - can now create rails apps such that fermion can see them on :3000
Example Example Example
Rails

` $ rails new cookbook --css=tailwind `

K3s

21JUN2025 Installed 5 centos stream 9 minimal install servers with same configs:

worker nodes
  • hostname: k3s-wNN (i.e. k3s-w01, k3s-w02...)
  • /vm-spc/k3s-w01 30 gig partition
  • 8 gigs RAM
  • bridged network interface
  • minimal software install
  • root password (dads job)
  • user Jason Michael (dads job)
master nodes
  • hostname: k3s-mNN
  • /vm-spc/k3s-m01 40 gig partition
  • 8 gigs RAM
  • bridged network interface
  • minimal software install
  • root password (dads job)
  • user Jason Michael (dads job)
all nodes
  • updated dnf, installed python3-pip
  • setup ssh keys such that passwordless ssh possible from masters to workers and from fermion to all possible
k3s

installed crio on all nodes (w and m) ran setup/crio/vers setup/crio/repos setup/crio/cmds on each