Repository navigation
Reconcile Maid Café guests and define a new k8s-01 VM - #197
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The production state still identifies VM 107 as
k8s_01, while its actual occupant istaskbox-templateand 46 guests exist across the cluster. This PR adopts the current 30 QEMU VMs and 16 LXC containers, including templates, plus the existing VM 110 HA policy. It also defines a newk8s-01VM at unused VMID 168 on Boba, separate from the stale state entry.Each guest has a Terraform file named after its current name. Existing guests retain type/VMID resource labels and their current CPU/RAM, disks, networks, autostart settings and pools. Historical disabled Kubernetes definitions without an active counterpart remain for reference; active WiCyS files supersede their disabled counterparts.
The active provider is pinned to
bpg/proxmox0.116.1. Telmate remains only to decode and detach its staleproxmox_vm_qemu.k8s_01state entry withdestroy = false. Adoption imports 47 existing objects and initializes onlyvm_id/timeout_startmetadata for the 16 containers. The Azure backend andprodworkspace stay unchanged.The old run attempted to change
taskbox-templateintok8s-01and failed withsource must be set on creation. The newk8s-01.tfusesproxmox_virtual_environment_vm.k8s_01, allocates a new 100 GiB disk onlocal-lvm, and explicitly attaches the existing Talos ISO. It retains four CPU cores, 4 GiB RAM, UEFI/TPM, the Kubernetes pool and speed2/VLAN 9 network. VM 168 is created stopped, with deletion protection; Talos installation and cluster bootstrap are separate operational steps.Every managed object has
prevent_destroy. The plan policy blocks deletion, replacement, unapproved creation, unsafe state removal, ID/node changes and UUID mismatches. Its only creation exception is the new k8s-01 address with VMID 168, node Boba, the expected name, and known stopped/protected/non-template state. It does not permit replacement or adoption through that exception.Both workflows display the human-readable plan while saving it, with values marked sensitive redacted by OpenTofu. Saved binaries and JSON remain private temporary files. Application is manual-only and uses the exact checked saved plan; the apply workflow remains incident-disabled. Existing guest power state, operator notes, unset container CPU weights and peripheral metadata omitted during import are narrowly ignored as documented in the README.
Validation:
No production state migration, VM creation or infrastructure apply has been performed. Review a fresh production plan before deliberately dispatching application.