My homelab
git clone --recurse-submodules [email protected]:UnconventionalMindset/homelab.git
git submodule update --remote
Nextcloud has been dropped for being too slow. TODO: automate the following provisioning even more and use GitOps TODO: make insecure files secure. They are currently left out of this repo for security reasons
ssh-keygen -f "/home/jac/.ssh/known_hosts" -R "192.168.31.190"
ssh-keygen -f "/home/jac/.ssh/known_hosts" -R "192.168.31.191"
ssh-keygen -f "/home/jac/.ssh/known_hosts" -R "192.168.31.192"
rm -f ~/.kube/config
terraform init
terraform apply
cd ~/homelab/ansible-automations/
ansible-galaxy install -r requirements.yaml
ansible-playbook playbooks/coreos-packages.yaml
ansible-playbook playbooks/k8s-init.yaml
ansible-playbook playbooks/k8s-tools-setup.yaml
ansible-playbook playbooks/cni-plugins.yaml
export ANSIBLE_VAULT_PASSWORD_FILE="password.secret"
ssh -i ~/.ssh/coreos [email protected]
sudo su
cp ~/.kube/config /home/core/config
chmod 777 /home/core/config
In another terminal tab execute:
mkdir -p ~/.kube
scp -i ~/.ssh/coreos [email protected]:/home/core/config ~/.kube/config
chmod 600 ~/.kube/config
cd ~/homelab/k8s-templates
In the other tab, delete the k8s config:
rm /home/core/config
Add in the worker node that has the zigbee USB:
USB Device - Vendor/Device ID: Use USB Vendor/Device ID
In the workers node add GPU passthrough, selecting: PCI Device - RAW
Continue the setup in the k8s-templates submodule