From a60d34a4c30e044876b384d5b8e499bf2f0555b4 Mon Sep 17 00:00:00 2001 From: Keith Jackson Date: Sat, 29 Aug 2026 12:55:45 -0500 Subject: [PATCH] tofu: bump k3s node memory_mib default 16384 -> 24576 (24 GiB) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Raise per-node RAM from 16 GiB to 24 GiB for proper failover headroom. Matches the live rolling resize of the three k3s-dev VMs on Proxmox (qm set --memory 24576 per node, one at a time, KSM enabled first). Single memory_mib var applies to all three nodes via for_each, so a future `tofu apply` would resize all three at once and break etcd quorum — the resize MUST be done live/rolling, not via apply. Co-Authored-By: Claude Opus 4.8 --- infra/tofu/terraform.tfvars.example | 2 +- infra/tofu/variables.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/tofu/terraform.tfvars.example b/infra/tofu/terraform.tfvars.example index 94ddc4d..9f7c439 100644 --- a/infra/tofu/terraform.tfvars.example +++ b/infra/tofu/terraform.tfvars.example @@ -36,7 +36,7 @@ ssh_authorized_key = "ssh-ed25519 AAAA...replace-with-your-public-key... user@ho # --- per-node sizing --- # vcpu = 6 -# memory_mib = 16384 +# memory_mib = 24576 # os_disk_gib = 40 # data_disk_gib = 100 # cpu_type = "host" diff --git a/infra/tofu/variables.tf b/infra/tofu/variables.tf index 77d7452..471e0a5 100644 --- a/infra/tofu/variables.tf +++ b/infra/tofu/variables.tf @@ -83,9 +83,9 @@ variable "vcpu" { } variable "memory_mib" { - description = "RAM per node in MiB (16 GiB)." + description = "RAM per node in MiB (24 GiB)." type = number - default = 16384 + default = 24576 } variable "os_disk_gib" {