KubePods
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.img

Create 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 20G

Clone the repository

git clone https://github.com/TimotheeRen/KubePods.git

Initialize Terraform

terraform init

Plan the migration

terraform plan

Apply the migration

terraform apply

Start the virtual machines

virsh start master_node-vm
virsh start worker_node-vm

Add Ansible playbooks dependencies

ansible-galaxy collection install kubernetes.core

Wait then run the Ansible playbook

ansible-playbook playbook.yml

Verification

On this page