terraform: create ubuntu vms and install kubernetes with kubeadm

This commit is contained in:
Jan Novak
2025-12-29 14:32:30 +01:00
parent acfe11bf74
commit 0fee1b879a
11 changed files with 817 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# kubernetes
## 1: create VMs on hypervisor
## 2: install kubernetes with kubeadm
## 3: bootstrap flux
## 4: deploy the rest
### Random notes
```bash
# recreate specific resources
tofu destroy -target=libvirt_domain.ubuntu_vm -target=libvirt_volume.cloudinit
tofu apply
# taint resource to have it recreated
tofu taint libvirt_domain.ubuntu_vm
```