My Kubernetes Homelab

I made a post when I passed the KCNA and promised to share my homelab project when it is well advanced. The KCNA course motivated me to build this project. For the past 4 months, I’ve been building this homelab, which is a bare-metal Kubernetes cluster on Debian 13. The cluster is deployed using shell scripts and Helm, managed declaratively via GitOps with Argo CD, and includes a full stack for observability, security, autoscaling, and network segmentation. It details the architecture, components, deployment process, security measures, and service access for the homelab.
Key Points:

  • The Kubernetes homelab cluster is built on Debian 13 and uses kubeadm for bootstrapping. 

  • Deployment is done using shell scripts and Helm, managed via GitOps with Argo CD. 

  • The cluster includes a control plane and two worker nodes with static IPs and wired Ethernet connections. 

  • Cilium is used as the CNI plugin, replacing kube-proxy and supporting Gateway API. 

  • MetalLB is configured in L2 mode for LoadBalancer services with a defined LAN IP pool. 

  • Longhorn provides distributed block storage with two replicas per volume. 

  • TLS is terminated at the Cilium Gateway using a wildcard certificate issued by cert-manager. 

  • The cluster uses CoreDNS as a local DNS resolver with wildcard templates for automatic service resolution. 

  • Network segmentation is enforced using CiliumNetworkPolicy with a zero-trust model. 

  • Runtime security is provided by Falco, which monitors eBPF syscalls and routes events to Loki and Slack. 

  • Image signing is implemented with Cosign  (currently implementing this in a project which I’ll share), and the verify-image-signatures policy is in audit mode.

  • Trivy Operator is used for continuous vulnerability scanning, configuration audits, and RBAC assessments.

  • Daily etcd snapshots are performed on the control plane for backup purposes. Sends failed cron jobs to my Slack.

  • The observability stack includes Prometheus, Grafana, Loki, and Hubble for network observability and metrics, logs, and network flow visualisation. 

  • Argo CD follows the App-of-Apps pattern for GitOps-based continuous delivery. 

  • The article provides detailed deployment steps, including OS preparation, control plane initialisation, Cilium installation, and worker node joining. 

  • Kyverno enforces Pod Security Standards with 7 ClusterPolicies for security and compliance. 

  • Key design decisions include using Cilium to replace kube-proxy, enabling Loki multi-tenancy, and using CoreDNS for DNS management.

    Find the project repo below.
    JonesOsei-Homelab

    NB: You can contribute to the project, critique it and share your thoughts. Please give a star if the project aligns with your objectives for this program. Thank you.