Terraform v0.13.5
ansible 2.9.6
terraform init
tar xvfz terraform-provider-libvirt-0.6.3+git.1604843676.67f4f2aa.Ubuntu_20.04.amd64.tar.gz
cd .terraform.d/ in your home directory
mkdir -p plugins/registry.terraform.io/dmacvicar/libvirt/0.6.3/linux_amd64
mv terraform-provider-libvirt .terraform.d/plugins/registry.terraform.io/dmacvicar/libvirt/0.6.3/linux_amd64/
Note! You probably have to setup some libvirt & qemu settings for 'permission denied' or virsh without sudo etc. things
Check parameter details for Terraform libvirt provider: https://github.com/dmacvicar/terraform-provider-libvirt
Check that debian image download url works before using this script.
terraform plan
terraform init
terraform apply
./resize_default_debian_qcow2.sh
ansible-playbook master-playbook-1.yml
ansible-playbook node-playbook.yml
joro@master1:~$ kubectl get nodes
- NAME STATUS ROLES AGE VERSION
- master1 Ready master 27m v1.19.4
- worker1 Ready 4m18s v1.19.4
- worker2 Ready 4m18s v1.19.4
- worker3 Ready 4m18s v1.19.4
- worker4 Ready 4m18s v1.19.4