All 42 projects

42 Project brief

Inception-of-Things

Kubernetes from the ground up, solo: a two-node K3s cluster on virtual machines, apps routed through an Ingress, then a GitOps pipeline where Argo CD deploys every change pushed to GitHub.

Type
Solo project
Focus
Kubernetes & GitOps
Validated
Oct 2025
Workload
200 h

The project

Inception-of-Things is the 42 introduction to Kubernetes from a developer’s point of view, in three parts: a K3s cluster on virtual machines, applications behind an Ingress, and continuous deployment with Argo CD.

Every part comes up from scratch with a single command, vagrant up or a setup script, with no manual steps in between.

Stack

  • Kubernetes
  • K3s
  • K3d
  • Vagrant
  • VirtualBox
  • Alpine Linux
  • Docker
  • Argo CD
  • Bash

What I built

01

Part 1 · K3s on two virtual machines

A two-node cluster provisioned from scratch with Vagrant and VirtualBox.

  • Two Alpine Linux VMs on a private network: one runs K3s as the server, the other as an agent
  • The server shares its join token through the Vagrant synced folder, so the worker joins the cluster on its own
  • Flannel is pinned to the private network interface so pod traffic flows between the two machines
02

Part 2 · Three apps behind an Ingress

One K3s node serving three web apps, routed by host name.

  • Three small web apps packaged as nginx images and published on Docker Hub
  • A Deployment and a Service for each app, with three replicas for the second one
  • Ingress rules send app1.com and app2.com to their apps, and every other host to app3
03

Part 3 · GitOps with K3d and Argo CD

A cluster running in Docker that deploys itself from a Git repository.

  • One script installs Docker, kubectl, K3d and the Argo CD CLI, then creates the cluster with its port mappings
  • Argo CD runs in its own namespace and watches a public manifests repository with automated sync
  • The app lives in a dev namespace: pushing a new image tag, v1 to v2, redeploys it by itself
04

A written guide

The repository doubles as my notes on the concepts behind each part.

  • Control plane and worker components, and what K3s changes compared with standard Kubernetes
  • Pods, Deployments, Services and Ingress, and how traffic reaches a container
  • K3d, storage and configuration, Argo CD, and the kubectl commands I used most

How a deploy happens

  1. 1

    Commit

    A new image tag is pushed to the manifests repository on GitHub.

  2. 2

    Detect

    Argo CD, running inside the cluster, sees that the cluster no longer matches Git.

  3. 3

    Sync

    With automated sync on, it applies the new manifests to the dev namespace.

  4. 4

    Roll out

    Kubernetes replaces the running pod with one on the new version.

  5. 5

    Live

    The new version answers on the exposed port, without a single manual kubectl command.

Code