PROJECT 01 : INFRASTRUCTURE / DEVOPS

Self-Hosted DevOps Homelab

A self-hosted development and deployment environment on an always-on Proxmox host, built with Linux, Gitea Actions, Docker, k3s, Prometheus and Cloudflare Tunnel.

Overview

A self-hosted DevOps and infrastructure environment built to simulate a real-world development, testing, and deployment workflow.

Everything runs on one always-on Proxmox VE host, pve-1: a Debian VM for the Docker apps, Gitea for code and CI, a two-node k3s cluster with Argo CD that runs DataBI, a monitoring VM with Prometheus, Grafana and SonarQube, a tools workstation and a Kali VM for security testing.

Until November 2026 the Kubernetes lab lived on a second host, pve-2. That box is not on around the clock, so I streamed every guest across with the same IP and MAC addresses and replaced GitLab with Gitea on the way. pve-2 now holds stopped copies as a fallback.

Project Goals

The main goal of this project is to build and operate production-like infrastructure rather than relying entirely on managed cloud platforms.

The lab is designed to help develop practical experience in:

  • Virtualization
  • Linux system administration
  • Networking
  • Git and Git workflows
  • Self-hosted infrastructure
  • CI/CD
  • Automated deployments
  • Cloud networking
  • Application hosting
  • Infrastructure security
  • System monitoring and reliability

Architecture

The homelab is built around a Proxmox virtualization layer. Different workloads are isolated into separate virtual machines, while selected services are exposed publicly through Cloudflare Tunnel.

Internet to Cloudflare Tunnel to the guests on pve-1: the Debian app VM, Gitea, the k3s cluster, the ops VM, the workstation and Kali, all on Proxmox VE

Delivery Flow

Push to Gitea, Gitea Actions runners test, scan and deploy to k3s through Argo CD or to the Docker apps

Infrastructure

Proxmox VE

Proxmox is the virtualization layer of the homelab. A Leaderhub LP5C mini PC (12 threads, 32 GB) runs everything; an HP EliteDesk 800 G3 Mini stands by with stopped copies.

It provides the underlying platform used to create and manage the virtual machines running the different workloads.

Virtual Machines

GuestHostPrimary Role
debianpve-1Docker apps: this site, GridTwin, PostgreSQL; the deploy runner
giteapve-1Git, Actions CI and container registry
k3s-cp1, k3s-w1pve-1Kubernetes cluster with Argo CD, running DataBI
opspve-1Prometheus, Grafana and SonarQube
workstationpve-1Tools VM: kubectl, Helm, OpenTofu, Ansible; the build runner
kalipve-1Security testing of my own services

The infrastructure is intentionally separated into different virtual machines so that services and experiments can be isolated from one another.

DevOps & Deployment

Gitea is used for source-code management and CI/CD. It replaced self-hosted GitLab in November 2026 (the migration).

Application changes are committed to Git and processed through Gitea Actions workflows. The pipelines automate the build, testing, and deployment workflow, reducing the need for manual deployment steps.

This provides practical experience with:

  • Git-based development workflows
  • CI/CD pipeline design
  • Automated builds
  • Automated testing
  • Deployment automation
  • Application lifecycle management

Network & External Access

Cloudflare Tunnel is used to securely expose selected internal services to the internet.

Instead of forwarding inbound ports directly to the homelab, the tunnel creates an outbound connection from the infrastructure to Cloudflare.

This allows publicly accessible applications to remain behind the homelab's network boundary while still being reachable through configured domains.

Monitoring

Prometheus scrapes the Proxmox host, every guest, the Proxmox API, the k3s cluster and Gitea, Loki collects their logs, and Grafana shows both. Alertmanager sends problems to Telegram, and SonarQube scans the code on every push. (Observability and code quality.)