This document outlines how you'd initialize a brand new kubespray cluster from scratch using this IaC repository.
- init kubespray git submodule
git submodule init
- setup python virtual env
python3 -m venv venv
- source python venv
source venv/bin/activate git submodule update cd ansible/kubespray git pull git checkout v2.23.1 # replace with desired tag/release pip install -r requirements.txt cd ../
- run
cluster.yml
playbookansible-playbook -i inventory/homelab/homelab.ini --become --become-user=root --user zbialik playbooks/common.yml ansible-playbook -i inventory/homelab/homelab.ini --become --become-user=root --user zbialik kubespray/cluster.yml
- initialize GitOps pattern by following this document