RunbooksInstallation
Staging
Staging environment installation process
Prerequisites
- A host with virtualization enabled
- Qemu and KVM installed and configured
- Terraform installed with a version >= 1.15.6
- Libvirtd service running
- Host's public SSH key in
~/.ssh/id_ed25519.pub
Process
Install a Debian based cloud image
cd /var/lib/libvirt/images
sudo wget https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.imgCreate a backing file
sudo qemu-img create -f qcow2 -F qcow2 \
-b /var/lib/libvirt/images/noble-server-cloudimg-amd64.img \
/var/lib/libvirt/images/ubuntu.qcow2 20GClone the repository
git clone https://github.com/TimotheeRen/KubePods.gitGet in the provisioning/staging folder
cd provisioning/stagingInitialize Terraform
terraform initPlan the migration
terraform planApply the migration
terraform applyStart the virtual machines
virsh start master_node-vm
virsh start worker_node-vmAdd Ansible playbooks dependencies
ansible-galaxy collection install kubernetes.coreWait then run the Ansible playbook
ansible-playbook playbook.ymlVerification
You should have two running VM
virsh list --all