Skip to content

πŸ–³ In-house kubernetes cluster built with Talos and managed by flux (gitops).

License

Notifications You must be signed in to change notification settings

kashalls/home-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Kashall's Home Operations

DiscordΒ Β  TalosΒ Β  KubernetesΒ Β  Renovate

Age-DaysΒ Β Β  Uptime-DaysΒ Β Β  Active-AlertsΒ Β Β  Node-CountΒ Β Β  Pod-CountΒ Β Β  CPU-UsageΒ Β Β  Power-Usage

What is this?

This is the repository I use to version control my kubernetes clusters I deploy and maintain at home. I currently use Talos to provide a secure, minimal and immutable environment for Kubernetes. Previous iterations of this repository relied on Debian-based Operating Systems which can lead unwanted changes in the base system.

How did you do this?

Thanks to onedr0p, there is the cluster template that allows you to easily get started with your own kubernetes cluster at home. You don't need to have multiple computers or a fancy setup to get one working.

If you're interested, you can also join the community Discord: Home Operations. Several people are involved daily and it makes for some interesting conversations.

Directory Helper

This repository uses the following layout for Kubernetes.

πŸ“ kubernetes
└── πŸ“ {cluster}
   β”œβ”€β”€ πŸ“ apps # Per-cluster application-specific configurations.
   β”œβ”€β”€ πŸ“ bootstrap # Flux & Talos configurations for setting up the cluster.
   β”œβ”€β”€ πŸ“ flux # Flux configuration, application repositories and more.
   β”œβ”€β”€ πŸ“ kubeconfig # Kubernetes Certificate
   └── πŸ“ talosconfig # Talos Certificate

☁️ Cloud Dependencies

While most of my infrastructure and workloads are self-hosted I do rely upon the cloud for certain key parts of my setup. This saves me from having to worry about two things. (1) Dealing with chicken/egg scenarios and (2) services I critically need whether my cluster is online or not.

Service Use Cost
1Password Secrets with External Secrets ~$55/yr
Cloudflare Domains, Workers, Pages, and R2 ~$30/yr
GCP Voice interactions with Home Assistant over Google Assistant Free
GitHub Hosting this repository and continuous integration/deployments Free
Let's Encrypt Issuing SSL Certificates with Cert Manager Free
Migadu Email Hosting ~$20/yr
Pulumi Cloud Resource state management Free
Pushover Kubernetes Alerts and application notifications Free
UniFi Site Manager UniFi External Access Management Free
Total: ~$10/mo

πŸ’» Networking

Click to see a high-level network diagram networking

🌐 DNS

UniFi released a new feature update with UniFi routers that allow you to create custom dns records to be served to the whole network. I wroteExternal DNS Unifi Webhook to allow External DNS to gather service and ingress hosts from my clusters and deploy the records without any extra local resolvers.


πŸ”§ Hardware

Click to see the rack! Updated 05/25/2024 rack
Device Count OS Disk Size Data Disk Size Ram Operating System Purpose
UXG-Max 1 - - - UniFi OS Router
UCK-G2-Plus 1 - 250 GB HDD 3GB UniFi OS UniFi Management
US-24-G1 1 - - - - Core Switch
U6-LR 1 - - - - Office AP
UAP-AC-Pro 1 - - - - Dining Room AP
USP-PDU-Pro 1 - - - - Rack PDU
Raspberry Pi 4 3 256GB SSD - 8GB Talos Raspberry Cluster
Lenovo ThinkCentre M900 6 256GB SSD 1TB NVMe (rook-ceph) 16GB Talos Kubernetes Nodes
Fran 1 2x1TB SSD 5x8TB (raidz2) 64GB Debian Storage Cluster
Raspberry Pi 3 1 32GB (SD) - 4GB - Network KVM
APC Back-Ups 1500 1 - - - - UPS

⭐ Stargazers

Star History Chart


Inspiration

Thanks to all the people who donate their time to the Home Operations community.

Special thanks to: α—ͺΡ”Ξ½ΞΉΞ· α—·Ο…Π½ΚŸ, Bᴇʀɴᴅ Sα΄„Κœα΄Κ€Ι’α΄‡Κ€s, and Toboshii Nakama for their assistance.

Check out kubesearch.dev to see what other users are running in their kubernetes home labs!