Terraform and Ansible playbooks to create a local k3s cluster on a proxmox host from scratch. Includes ArgoCD and cilium networking.
- HCL 62.7%
- Jinja 37.3%
|
Some checks failed
Ansible K3s Deployment / Lint (push) Failing after 22s
Ansible K3s Deployment / Deploy K3s Cluster (push) Has been skipped
Ansible K3s Deployment / Deploy K3s Only (push) Has been skipped
Ansible K3s Deployment / Deploy Cilium Only (push) Has been skipped
Terraform / Validate (push) Failing after 14s
Terraform / Apply (push) Has been skipped
Terraform / Destroy (push) Has been skipped
Ansible K3s Deployment / Check (Dry Run) (push) Has been skipped
Terraform / Plan (push) Has been skipped
|
||
|---|---|---|
| .forgejo/workflows | ||
| ansible | ||
| manifests | ||
| terraform | ||
| .gitignore | ||
| README.md | ||
infra-k3s
My homelab k3s cluster setup. Spins up VMs on Proxmox with Terraform, then configures a k3s cluster with Ansible. Uses Cilium for networking and ArgoCD for GitOps.
Nothing fancy, just a hobby project to learn and tinker with. Works on my machine. :)
What's in here
- terraform/ — Provisions Ubuntu VMs on Proxmox via cloud-init
- ansible/ — Installs k3s, Cilium CNI, and ArgoCD
- manifests/ — ArgoCD app definitions and Cilium network policies
Usage
Copy terraform/terraform.tfvars.example to terraform/terraform.tfvars and fill in your values. The Proxmox credentials and SSH keys are expected as environment variables or CI secrets — nothing sensitive is checked in.
Check the ansible README for cluster deployment details.
Note
This is not production-grade. It's a learning playground. Use at your own risk.