All content in this website was written by me.

Overview

I’ve recently acquired a Dell T430 tower and I’ve been setting it up as my homelab, it’s hosting the website that you’re reading this on. After dealing with the headaches my past-self gave me, I wanted to set up infrastructure that was easily serviceable, reproducible, and with thorough documentation. The biggest change was using Argo CD as a central management point for Kubernetes, along with a VPS that acts as an entry point to my cluster.

This project is the ongoing continuation of my work with system administration. In 2023 I took a UNIX System Administration course at SDSU, and this was my first experience with managing virtual machines and deploying my own services. While it was a bit of a crash course with a steep learning curve, I’d say it was the most influential course I’ve taken at SDSU, and it piqued my interest in setting up some of the same services on my own terms. This is what led me to re-purpose my old gaming PC as my own “server,” a place where I could host game servers and other services for personal use.

My next step in this journey was with SDSU’s Research and CyberInfrastructure department. In 2025, I worked with them as a graduate student assistant to help deploy services through Kubernetes; this was an important step as it helped me switch from the older mindset of “one VM per service” to the modern container and Kubernetes backed services. After a couple weeks with the RCI department, I transitioned my old desktop to be a single-node Kubernetes (k8s) cluster with Microk8s. This first attempt worked very well with the knowledge I had at the time. I was able to host my personal website and everything ran smoothly, but I ran into issues later on with attempting to migrate to a different install, more on this later.

Brief Architecture Overview

A fun part of managing all of these machines is giving them names. I’ll be referring to them by name in the rest of this post, so I want to outline what each of the machines are and what they’re named:

  • Golth: My old gaming desktop, set up with Windows with an Ubuntu Server virtual machine running on it
  • Talos: My Dell T430 tower, the main compute node for my cluster
  • Iris: A virtual private server (VPS) that acts as the public facing entry point to Talos, connected via WireGuard.

The Old Homelab

My first homelab, Golth (short for Goliath), was a good first attempt at hosting services; I used it from 2024 to the start of 2026. It was fairly primitive, and I followed the structure that I learned from UNIX SysAdmin: run the machine with Windows, then host virtual machines that facilitate services. Running Windows on the base machine also allowed me to host other game servers that I had previous experience with running locally, this time being on a machine that I can leave permanently up. Having the Windows base was helpful for me as I was unfamiliar with Linux systems at the time, so it was nice for me to build off of a platform that I knew. In summary, there’s a Windows base and then an Ubuntu Server virtual machine running on top of it, both of these instances I refer to as Golth.

I used the tool kubectl to deploy services on Golth, along with Kubernetes manifests using a common deployment and service bundle stored in files on the machine. For those experienced with Kubernetes, this is a perfectly fine solution as you still have declarative definitions of your containers. However, it’s still a manual process: you have to apply all the manifests by name in a specific order so services are deployed as you expect. To me, this felt like a hole in the system. Since the files have all the information specifying the target state of the cluster, they should be able to be applied automatically once saved.

Problems With the Old Homelab

A lot of my time with Golth was just figuring out how everything worked. I was jumping into a lot of different things at once: public facing services, CloudFlare, ingresses, load balancers, and more. I had a vague understanding of everything that was going on, but it was a very clear first pass at attempting to stitch everything together. The deployments I made weren’t documented very well, and I didn’t keep track of how everything was put together. While everything “worked” it wasn’t very robust and prone to failure.

Failed Migration

All of the problems with Golth came to a head when I wanted to move from the virtual machine to a bare-metal Ubuntu Server install. It seemed like responses from services on the VM were slower than the base Windows installation. I didn’t benchmark the difference, but in hindsight I would have liked to. Also, this layout became too cumbersome. I didn’t like having my cluster behind the network bridge on the host machine, adding network complexity with port forwarding and perceived latency that felt avoidable. I also didn’t like that I was managing a host OS and VM together for what should just be a single OS instance.

Attempting this migration showed that my existing understanding of Kubernetes fell short of reality. I thought that once all of the manifests were set up, they could be easily deployed with kubectl apply -f and match how it was done the first time. This misses one of the most important parts of deploying services like this: some services may depend on others. An example of this is with Kubernetes Custom Resource Definitions: dependent services will fail if they try to run without them, so each resource must be defined before it’s used.

This was the main failing point of attempting to migrate Golth: I didn’t fully understand, nor document, the infrastructure and deployment order of what I was making originally. I like to think of Golth as the before picture of the server closet seen in my server organization project- a tangled mess that simply functions in a precarious state. During this time I was still in grad school and working; and after multiple failed attempts to bring back Golth I decided to retire it.

The New Homelab

After graduating from SDSU and acquiring the Dell T430, I was ready to begin building a new Microk8s cluster; the changes I made with Talos directly address the issues I ran into when building Golth. I made sure to keep things streamlined- with more experience and a deeper understanding of what each component does, everything had a reason for being included in the cluster. I also wanted to keep good documentation for what I was doing. If I was adding something in, it went into Talos’ README file; I wanted to ensure I knew what was in the cluster and why instead of having to try to remember it all. Both of these objectives were in place to avoid another “rats nest” situation that I created with Golth.

The T430 was my first experience with server-grade hardware and I’ve only worked with consumer-grade in the past; I fixed some components and wiped it to get a factory-reset machine. I started with installing Ubuntu Server 24.04 directly, staying streamlined by avoiding a virtual machine. I’ve upgraded how services store data from hostpath storage to Ubuntu Logical Volume Manager backed storage. An LVM is a way to store data that allows flexible resizing and relocating. Kubernetes uses OpenEBS to provision a new LV and store data on it. Hostpath storage means data is stored in a directory on the host machine. Kubernetes looks under the configured hostPath directory creates a new one if needed to store data. While it doesn’t make it high-availability or redundant, it does provide better separation between volumes and constrains the maximum amount of data per volume.

The biggest improvement with this build was learning about and applying GitOps practices. As mentioned previously, manually applying manifests felt like a hole in Kubernetes, but with GitOps we “automate the process of provisioning infrastructure,” filling that gap. GitOps extends the DevOps methodology to infrastructure management, meaning all manifests that define the cluster should be uploaded to Git so an automated system can deploy those manifests. In other words, it’s almost like using a CI/CD pipeline for infrastructure management. It perfectly aligns with the goals of streamlining Talos as it gets rid of the manual manifest deployment with kubectl; manifests are set up in such that they can be uploaded to Git, and the GitOps controller (Argo CD) will observe the state of the cluster and ensure it matches with what is uploaded to the repository.

The Benefits of Argo CD

Argo CD Dashboard

While GitOps is the methodology, Argo CD is the driver behind it. The Git repository defines the state of the cluster. Argo will observe it and ensure the cluster matches that state; this is known as “synchronization” and it can be configured to activate automatically or manually. Since Talos is still on the smaller scale, I use manual synchronization. Argo also provides a central dashboard that gives you an overview of the cluster. It provides the state of each app in the cluster, as well as details on each app if needed; while kubectl provides all of this information, being able to access it with a UI greatly streamlines the process.

Argo adds a new custom resource definition to Kubernetes: the Argo app. An app is made up of either a bundle of manifests or a Helm chart, and it is a simple way to organize services into manageable units. The coolest part about it is the “app of apps” structure. A root app can be created that will target the manifests defining all of the other apps used in the cluster. In my mental model, the root app dictates what services are desired in the cluster while each child app actually dictates the functionality. The root app is important as it saves the manual deployment of app manifests; if we didn’t have an app-of-apps, kubectl would still be used to apply the app manifest file for each service, defeating the purpose of using Argo CD and this structure.

The following images show how I’ve set up my app of apps structure for Talos. The YAML on the left is the definition for the root app. Under the source section, we specify the Git repository that we will be pointing to and the directory in said repository that Argo should take the files from. To reiterate, the root app will be targeting the manifests defining the other apps in the cluster; I’ve shown this in the image on the right below: I’ve separated my infrastructure apps and operation apps into two directories for organization. How the rest of the cluster is deployed should start to show: each YAML file in the argoapps directory is a definition for another Argo app that will dictate the actual functionality of the services.

Argo root app example ymlArgo app manifests in filesystem

Another valuable part of Argo CD is the “sync wave” feature. It can be a way to enforce dependencies between apps. Every manifest that will be targeted by an Argo app allows for a sync-wave annotation. It’s an integer that dictates ordering. The lower the number, the earlier the manifest will be applied. Two examples of where I used this are:

  • The app-of-apps: ensuring that infrastructure, CRDs, and other dependencies are in place before the main services are applied.
  • App deployment: ensuring that secrets and PVCs are set up before services are started.

We use sync-wave in the root app to ensure apps that have dependencies are deployed first, and then again in each app to ensure app-level dependencies are managed. These features are invaluable for achieving the goal of setting up the infrastructure once, then being able to re-deploy it later and getting a copy of what you did the first time. If I had this set up with Golth, it would be trivial for me to deploy Golth’s root app and then have Argo CD do the rest.

External Secrets and 1Password

Keeping secret values like passwords and keys out of Git repositories is a common problem with Kubernetes deployments. My previous method for adding secrets was: create the secret YAML file, apply it with kubectl, and then ensure that the secret file is hidden with .gitignore. Deployments may have a “secret template” file that has placeholders for the values which would be safe to upload to Git; this allows engineers to still have an example of the secret in the repository while hiding the actual values.

GitOps adds a bit more complexity to this problem: since the Git repositories’ files are the source of truth, how do we get secret values into the cluster? The external secrets operator solves this by facilitating the creation of Kubernetes secrets from 1Password items. 1Password is a password manager that contains units of data with key value pairs, and is connected to Kubernetes as a ClusterSecretStore. With external secrets, the target secret can be defined using the 1Password item’s name and its key; along with a template that defines how the secret should be constructed. External secrets will then take the value from that key and make it a Kubernetes secret that can be consumed by normal Kubernetes Applications. Instead of having to manually apply a secret with kubectl, secrets can automatically be generated by the external secrets operator given a template and a 1Password vault. The following pictures show the pipeline: I create the secret in 1Password, define how it will be created with the YAML secret definition, and I can inspect the Kubernetes secret in production.

Cluster secret in 1PasswordCluster secret definitionCluster secret in cluster

The VPS Entry Point

One issue with maintaining a homelab is dealing with residential ISP connections. The IP address can change at any time; if that happens, users wouldn’t be able to reach my services. Hosting compute in the cloud is a good option that can solve these issues. However, it comes at extra compute cost that I don’t want to pay, especially when I already have the equipment. It was important to me to have my services hosted on my own hardware as well so I can have the experience with managing it on as many layers as possible.

This is where Iris, my VPS provided by Vultr comes in. It’s extremely lightweight, making it less than $5 a month to run. It is the entry point to my cluster; users visiting my domain will be sent to Iris first and then proxied to Talos over a WireGuard connection.

This setup doesn’t increase the availability of my cluster, but it still helps in mitigating downtime issues. When Talos isn’t reachable, either because I’m doing work or my connection is down, Iris will still display a maintenance page to ensure users aren’t trying to reach an unresponsive server. Since I post my domain as a portfolio on my resume, it would be a bad look to not have something in place while I was experiencing downtime.

WireGuard

Before trying WireGuard, I used OpenVPN to get me a connection to my server when I was away. While this solution worked, configuring it was more involved than it needed to be for results that I didn’t like. My main issue with OpenVPN was the lack of split-tunneling as a default; I wasn’t aware of this concept when I used it but I could have used this with more configuration. Another issue with OpenVPN was the difficulty in adding new clients: connection configs were cumbersome, and the process for generating keys is more involved compared to WireGuard.

With WireGuard every step of this process is simpler. Adding a peer to the network requires adding their public key to the WG server and configuring an IP address that it will be associated with. With that in place, the peer’s connection configuration can be populated with the server’s public key and its target endpoint. In my case, the endpoint would be my domain which reaches Iris but forwards WireGuard packets to Talos- Talos hosts the WireGuard server. Once I connect a peer with WireGuard I have a stable IP I can target if I’m either at home or away.

Using WireGuard to have stable IPs came in handy when I needed to switch ISPs. On the day of the switch, I simply switched my router’s WAN cable from my old modem to my new one, and a few minutes later Talos and all of its services were back online. This also demonstrated Iris’s ability to serve traffic while Talos was unavailable: while the modem was booting, my domain responded with my maintenance page.

Iris’s Bootstrapper

I’ve set up Iris with a bootstrap package that can get it running with a single script. This allows me to quickly reset Iris and get my working install back as it was deployed the first time. I’ve already utilized this multiple times to upgrade Iris, and it’s as simple as wiping the OS install, transferring the bootstrap package, and running the script. As long as I’m targeting an Ubuntu Server 24.04 instance, I can quickly install Iris and have it connected to Talos within minutes.

Results

After building Talos, maintaining my own infrastructure has never been easier. I am able to reach it from anywhere with Talos’s WireGuard IP. I also have peace of mind with Iris, if something goes wrong I can be confident I have at least something responding at my domain. However, I think the greatest gains have been with GitOps and Argo CD. This is shown by what I was able to put together easily in the first few weeks after finishing Talos.

Grafana was the first thing I tried deploying. I simply added the kube-prometheus-stack helm chart as an Argo app; with a little bit of configuration I was up and running. I’ve created a dashboard for monitoring how much power Talos consumes, estimating the cost of running the equipment when $/kwh is configured. Another service I deployed was Authentik, an authentication management system that I would be able to use with other apps I deploy. With this in place, I could log into Argo CD and Grafana using my Authentik login, instead of having to manage logins for each app. These first services were proof to me that I’ve streamlined Talos. Instead of fighting with kubectl to get a service working on Golth, I could just upload the new manifests to Talos’s manifests repository and have it synchronized with Argo CD.

When building Talos, focusing on maintainability was the goal instead of just getting it working with Golth. Golth got harder to work on; a change in one service would break the others then fixing the broken ones would break the rest. I tended to “set and forget” services, but GitOps practices helped me implement a more maintainable system. Thinking of the infrastructure as a holistic system that constantly needs upkeep instead of parts that can be completed and forgotten was the major shift. Also, keeping documentation was a pivotal part in promoting maintainability. Writing documentation for Talos during building allowed me to keep track of what I was doing as well as providing a reference for later.

With Talos, I have a strong foundation for hosting my services and building new ones. In the future, I want to put a GPU in Talos and start hosting my own AI models locally using Ollama and OpenWebUI. I also want to put what I’ve done to the test: once I’ve finished setting up backups, I’ll knock out Talos and attempt to recover it from scratch. This project has taught me many lessons in keeping documentation and focusing on what the bigger picture will look like further down the road, something I will keep with me for the rest of my professional career. Thanks for reading!