/k3s-homelab

Version 2 of my homelab using k3s & flux with github actions

k3s kubernetes homelab powered by FluxV2 and Github actions.

Version 2 - currently single node due to unaffordable electric costs in the UK (68.3p/kwh) (see deprecated k8s cluster running on Dell Poweredge)

Member of the k8s-at-home community

Github - https://github.com/k8s-at-home
Repos - https://github.com/k8s-at-home/awesome-home-kubernetes
Discord - https://discord.gg/RGvKzVg

Hardware

  • This kubernetes cluster node is currently run on a Dell Optiplex 3050 SFF with 4 Cores, 8 Threads and 32gb RAM.
  • Proxmox for the hypervisor with a Ubuntu Server 20.04lts VM with 500gb nvme boot drive and a 240gb SSD scratch drive for downloading and unzipping *arrs.
  • Synology NAS with 6* 6tb Seagate exos drives in a 24TB pool for computer and cloud backups and plex media storage.
  • HP Microserver gen 8 (i3-3240T, 16gb ram) runs Proxmox for the hypervisor for a pi-hole LXT and a OpnSense VM for the router (with passthrough intel NICs)
  • Raspberry Pi 4 8gb will be a master and worker node for some ARM64 packages.
Node Specification
k1.resolv.sh 4 Cores, 32gb, 20.04LTS, control-plane,master,worker
k2.resolv.sh [WIP] Raspberry pi 4 8gb, ARM64 tainted worker

Packages

This cluster uses a number of tools to work properly:

  • Kubernetes k3s - Production-Grade Container Orchestration, automated container deployment, scaling, and management.
  • K3sup- uses Ansible to deploy a lightweight k3s production ready cluster.
  • Containerd - an industry-standard container runtime with an emphasis on simplicity, robustness and portability.
  • Flux2 - open and extensible continuous delivery solution for Kubernetes. Powered by GitOps Toolkit.
  • Github - code hosting platform for version control and collaboration.
  • Github actions - CI/CD runner for workflows
  • Renovate - universal dependency update tool that fits into your workflows.
  • Calico - an open source networking and network security solution for containers.
  • Cloudflare DDNS - service that keeps the DNS updated with a web property's correct IP address.
  • Cloudflare Tunnels - secure and encrypt application traffic to any type of infrastructure
  • MetalLB - load-balancer implementation for bare metal Kubernetes clusters.

To Do

Very much a work in progress, It'll be finished over the coming months. Subject to change.

  • K3s/k3sup bootstrap
  • Calico network manage for interpod networking
  • Traefik for reverse proxy and ingress
  • Add Renovate
  • Github Actions CI/CD
  • Encrypted secrets manager
  • Cloudflare DDNS
  • Cloudflare tunnels for service exposure to the internet
  • Wireguard/Tailscale for VPN access
  • Grafana and Prometheus for metrics
  • Self-hosted ghost blog
  • Various .arrs for media downloading and management
  • NFS share for NAS media and backups
  • Scratch drive .arrs downloads
  • NordVPN for .arrs downloads
  • Plex/Jellyfin with hardware transcoding enabled
  • Ubiquity Controller
  • Secondary pi-hole instance for high availability
  • Cloud backups of important files to AWS
  • Home Assistant
  • Much more TBD