Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Husband-approved enterprise™ homelab deployed with Talos Linux; managed with Flux, Renovate, and GitHub Actions 🤖

License

NotificationsYou must be signed in to change notification settings

buroa/k8s-gitops

Myenterprise™ homelab🚀

... managed withFlux,Renovate, andGitHub Actions🤖

Discord  Talos  Kubernetes  Flux  Renovate

Home-Internet  Status-Page  Alertmanager

Age-Days  Uptime-Days  Node-Count  Pod-Count  CPU-Usage  Memory-Usage  Power-Usage  Alerts


💡 Overview

Welcome to my home infrastructure and Kubernetes cluster repository! This project embraces Infrastructure as Code (IaC) and GitOps principles, leveragingKubernetes,Flux,Renovate, andGitHub Actions to maintain a fully automated, declarative homelab environment.


🌱 Kubernetes

My semi hyper-converged cluster runsTalos Linux—an immutable, minimal Linux distribution purpose-built for Kubernetes—on three bare-metalMS-A2 workstations. Storage is handled byRook, providing persistent block, object, and file storage directly within the cluster, complemented by a dedicated NAS for media files. The entire cluster is architected for complete reproducibility: I can tear it down and rebuild from scratch without losing any data.

Want to build something similar? Check out theonedr0p/cluster-template to get started with these practices.

Core Components

  • actions-runner-controller: Self-hosted GitHub runners for CI/CD workflows.
  • cert-manager: Automated SSL certificate management and provisioning.
  • cilium: High-performance container networking powered byeBPF.
  • cloudflared: Secure tunnel providing Cloudflare-protected access to cluster services.
  • envoy-gateway: Modern ingress controller for cluster traffic management.
  • external-dns: Automated DNS record synchronization for ingress resources.
  • external-secrets: Kubernetes secrets management integrated with1Password Connect.
  • multus: Multi-homed pod networking for advanced network configurations.
  • rook: Cloud-native distributed storage orchestrator for persistent storage.
  • spegel: Stateless cluster-local OCI registry mirror for improved performance.
  • volsync: Advanced backup and recovery solution for persistent volume claims.

GitOps

Flux continuously monitors thekubernetes folder and reconciles my cluster state with whatever is defined in this Git repository—Git is the single source of truth.

Here's how it works: Flux recursively scans thekubernetes/apps directory, discovering the top-levelkustomization.yaml in each subdirectory. These files typically define a namespace and one or more FluxKustomization resources (ks.yaml). Each FluxKustomization then manages aHelmRelease or other Kubernetes resources for that application.

Meanwhile,Renovate continuously scans theentire repository for dependency updates, automatically opening pull requests when new versions are available. Once merged, Flux picks up the changes and updates the cluster automatically.

Directories

This Git repository contains the following directories underkubernetes.

📁 kubernetes# Kubernetes cluster defined as code├─📁 apps# Apps deployed into my cluster grouped by namespace (see below)├─📁 components# Re-usable kustomize components└─📁 flux# Flux system configuration

Cluster layout

Here's how Flux orchestrates application deployments with dependencies. Most applications are deployed asHelmRelease resources that depend on otherHelmRelease's, while someKustomization's depend on otherKustomization's. Occasionally, an application may have dependencies on both types. The diagram below illustrates this:atuin won't deploy or upgrade untilrook-ceph-cluster is successfully installed and healthy.

Click to see a high-level architecture diagram
graph LR    classDef kustom fill:#43A047,stroke:#2E7D32,stroke-width:3px,color:#fff,font-weight:bold,rx:10,ry:10    classDef helm fill:#1976D2,stroke:#0D47A1,stroke-width:3px,color:#fff,font-weight:bold,rx:10,ry:10    A["📦 Kustomization<br/>rook-ceph"]:::kustom    B["📦 Kustomization<br/>rook-ceph-cluster"]:::kustom    C["🎯 HelmRelease<br/>rook-ceph"]:::helm    D["🎯 HelmRelease<br/>rook-ceph-cluster"]:::helm    E["📦 Kustomization<br/>atuin"]:::kustom    F["🎯 HelmRelease<br/>atuin"]:::helm    A -->|Creates| C    B -->|Creates| D    B -.->|Depends on| A    E -->|Creates| F    E -.->|Depends on| B
Loading

Networking

My network is built on a multi-tier architecture with enterprise-grade performance. At the core, a UniFi Dream Machine Pro handles routing and firewall duties, connected to a 10/25Gb aggregation switch that provides the backbone. Critical infrastructure—NAS, Kubernetes cluster, and access layer—connects via 10G LACP bonds for redundancy and throughput. A 24-port 2.5G PoE switch serves end devices and wireless access points, all backed by 5Gbps WAN connectivity from RCN.

Click to see a high-level network diagram
graph TD    %% Class Definitions    classDef wan fill:#f87171,stroke:#fff,stroke-width:2px,color:#fff,font-weight:bold;    classDef core fill:#60a5fa,stroke:#fff,stroke-width:2px,color:#fff,font-weight:bold;    classDef agg fill:#34d399,stroke:#fff,stroke-width:2px,color:#fff,font-weight:bold;    classDef switch fill:#a78bfa,stroke:#fff,stroke-width:2px,color:#fff,font-weight:bold;    classDef device fill:#facc15,stroke:#fff,stroke-width:2px,color:#000,font-weight:bold;    classDef vlan fill:#1f2937,stroke:#fff,stroke-width:1px,color:#fff,font-size:12px;    %% Nodes    RCN[🛜 RCN<br/>5Gbps WAN]:::wan    UDM[📦 UDM Pro]:::core    AGG[🔗 Aggregation<br/>10/25Gb]:::agg    NAS[💾 NAS<br/>1 Server]:::device    K8s[☸️ Kubernetes<br/>3 Nodes]:::device    SW[🔌 24 Port<br/>2.5G PoE]:::switch    DEV[💻 Devices]:::device    WIFI[📶 WiFi Clients]:::device    %% Subgraph for VLANs    subgraph VLANs [LAN +vlan]        direction TB        LOCAL[LOCAL<br/>192.168.0.0/24]:::vlan        TRUSTED[TRUSTED*<br/>192.168.1.0/24]:::vlan        SERVERS[SERVERS*<br/>192.168.10.0/24]:::vlan        SERVICES[SERVICES*<br/>192.168.20.0/24]:::vlan        IOT[IOT*<br/>192.168.30.0/24]:::vlan        GUEST[GUEST*<br/>192.168.40.0/24]:::vlan    end    style VLANs fill:#111,stroke:#fff,stroke-width:2px,rx:0,ry:0,padding:20px;    %% Links    RCN -.->|WAN| UDM    UDM --> AGG    AGG -- 10G LACP --- NAS    AGG -- 10G LACP --- K8s    AGG -- 10G LACP --- SW    SW --> DEV    SW --> WIFI    %% Style the bonded links thicker    linkStyle 2 stroke-width:4px,stroke:34d399;    linkStyle 3 stroke-width:4px,stroke:34d399;    linkStyle 4 stroke-width:4px,stroke:34d399;
Loading

🌎 DNS

I run two instances ofExternalDNS to handle DNS automation:

This is achieved by defining routes with two specific gateways:internal for private DNS andexternal for public DNS. Each ExternalDNS instance watches for routes using its assigned gateway and syncs the appropriate DNS records to the corresponding platform.


⚙ Hardware

Click to see my rackrack
DeviceCountOS DiskData DiskRAMOSPurpose
MS-A2 (AMD Ryzen™ 9 9955HX)31.92TB M.23.84TB U.2 + 1.92TB M.296GBTalosKubernetes Nodes
Synology RS1221+1-8×22TB HDD32GBDSM 7NFS Storage
PiKVM (Raspberry Pi 4)164GB SD-4GBPiKVMRemote KVM
TESmart 8-Port KVM1----Network KVM
UniFi Dream Machine Pro Max1-2×16TB HDD-UniFi OSRouter & NVR
UniFi Switch Pro Aggregation1---UniFi OS10G/25Gb Core Switch
UniFi Switch Pro Max 24 PoE1---UniFi OS2.5Gb PoE Switch
UniFi SmartPower PDU Pro1---UniFi OSManaged PDU
APC SMT1500RM2UNC UPS1----Backup Power

MS-A2 Configuration

Each MS-A2 workstation is equipped with:

🌟 Stargazers

Star History Chart

🙏 Thanks

Huge thanks to@onedr0p and the amazingHome Operations Discord community for their knowledge and support. If you're looking for inspiration, check outkubesearch.dev to discover how others are deploying applications in their homelabs.


⚖ License

SeeLICENSE.

About

Husband-approved enterprise™ homelab deployed with Talos Linux; managed with Flux, Renovate, and GitHub Actions 🤖

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp