Homelab ⚗️
This project aims to build a homelab for personal testing on infrastructure, development, CI/CD, etc...
It provides a complete configuration with common web services using ansible as a deployment tool for both infrastructure (gateway and k3s cluster) and applications running mainly in Kubernetes.
It is a quick starting point for simple infrastructure needs or for testing various tools such as monitoring, alerting, automated deployment, security testing, etc...
Quickstart
Make sure all prerequisites are met.
Setup directory:
sh
# Clone the repository
git clone --depth 1 https://github.com/this-is-tobi/homelab.git && cd ./homelab && rm -rf ./.git && git init
# Copy inventory example to inventory
cp -R ./ansible/infra/inventory-example ./ansible/infra/inventory
cp -R ./ansible/kube/inventory-example ./ansible/kube/inventory
Infra
Setup inventory:
Install:
sh
# Install infra
./run.sh -p ./ansible/infra/install.yml -u -k
Kubernetes
Setup inventory:
Install:
sh
# Set kube context
kubectl config set-context homelab
# Install services
./run.sh -p ./ansible/kube/install.yml -u