fix: stabilize kubeadm bootstrap and reduce Proxmox plan latency
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled

Move kubeadm reset ahead of kube-vip manifest generation, use super-admin.conf during bootstrap for kube-vip, and restore admin.conf after init. Also switch nixos-rebuild to --sudo and make QEMU guest agent optional so Terraform plan can skip slow guest-agent refreshes when it is not installed.
This commit is contained in:
2026-03-02 22:09:10 +00:00
parent 46c0786e57
commit a81799a2b5
4 changed files with 45 additions and 60 deletions

View File

@@ -24,7 +24,7 @@ resource "proxmox_vm_qemu" "control_planes" {
clone = var.clone_template
full_clone = true
os_type = "cloud-init"
agent = 1
agent = var.qemu_agent_enabled ? 1 : 0
automatic_reboot = true
cpu {
@@ -79,7 +79,7 @@ resource "proxmox_vm_qemu" "workers" {
clone = var.clone_template
full_clone = true
os_type = "cloud-init"
agent = 1
agent = var.qemu_agent_enabled ? 1 : 0
automatic_reboot = true
cpu {