Files
home-network-k3s-impl/infra/tofu/terraform.tfvars.example
jakman85andClaude Opus 4.8 a60d34a4c3 tofu: bump k3s node memory_mib default 16384 -> 24576 (24 GiB)
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 <[email protected]>
2026-08-29 12:55:45 -05:00

61 lines
2.4 KiB
Plaintext

# terraform.tfvars.example — copy to terraform.tfvars and edit.
#
# NOTE on secrets/gitignore: real *.tfvars are gitignored (root .gitignore) so
# local values never land in git. This *.example file is safe to commit — it
# carries NO private material (SSH *public* key only). Never put a private key here.
#
# The Proxmox API TOKEN is NEVER a tofu var — it is read from the environment
# (PROXMOX_VE_API_TOKEN) by the provider so it never enters state/vars. Same for
# the endpoint/insecure flag: source the operator env file before running tofu:
# export PROXMOX_VE_ENDPOINT="https://192.168.2.102:8006/"
# export PROXMOX_VE_API_TOKEN="user@realm!tokenid=SECRET"
# export PROXMOX_VE_INSECURE="true"
# # optional — lets tofu normalize a schemeless endpoint (prepend https://):
# export TF_VAR_proxmox_endpoint="$PROXMOX_VE_ENDPOINT"
#
# Defaults for everything below already encode the VERIFIED Proxmox migration
# targets; the ONLY required value is ssh_authorized_key.
# REQUIRED — your SSH *public* key (contents of e.g. ~/.ssh/id_ed25519.pub).
ssh_authorized_key = "ssh-ed25519 AAAA...replace-with-your-public-key... user@host"
# --- optional overrides (defaults shown) -----------------------------------
# --- Proxmox placement ---
# proxmox_node = "proxmox"
# datastore = "Storage" # ZFS, OS + data disks
# image_datastore = "local" # cloud image + cloud-init snippets
# bridge = "vmbr0"
# proxmox_insecure = true
# proxmox_endpoint = "https://192.168.2.102:8006/" # or set TF_VAR_proxmox_endpoint
# --- cluster shape ---
# node_count = 3
# node_name_prefix = "k3s-dev-"
# node_ips = ["192.168.1.50", "192.168.1.51", "192.168.1.52"]
# --- per-node sizing ---
# vcpu = 6
# memory_mib = 24576
# os_disk_gib = 40
# data_disk_gib = 100
# cpu_type = "host"
# --- network ---
# network_cidr = "192.168.1.0/24"
# network_gateway = "192.168.1.1"
# dns_server = "192.168.1.18"
# network_prefix = 24
# --- Cilium L2 VIP reservation (consumed by platform-config/cilium) ---
# cilium_l2_vip_range_start = "192.168.1.53"
# cilium_l2_vip_range_end = "192.168.1.60"
# --- identity ---
# login_user = "k3s"
# node_domain = "k3s.dev.local"
# --- base image ---
# image_source = "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2"
# image_file_name = "debian-12-genericcloud-amd64.img"