Bug: Stop bootstrap from re-running k3s install on live nodes #45

Merged
claude-bot Bot merged 1 commits from bug/stop-bootstrap-reruns into main 2026-11-22 02:59:35 +01:00

Why

k8s-bootstrap uses VM IDs as command triggers. After the VMs were renumbered, its preview wanted 16 replacements and 5 updates. Deploying that would re-run the unpinned k3s installer on all six nodes and append duplicate /etc/fstab entries on the workers.

What changes

  • All command: resources in this stack ignore changes to create and triggers, so they run once on a fresh install.
  • start-master-2 now calls the pve-esprimo API, where k3s-master-2 lives. This only affects fresh installs.

02-k8s-bootstrap only deploys through manual dispatch, so merging does not start a deploy.

Trade-off

After recreating a VM, re-run its commands explicitly with pulumi up --target-replace <urn>.

Verification

npm run typecheck passes. pulumi preview shows 1 to create and 30 unchanged. The create is wait-control-plane-vip-ready, a read-only health check that was added after the last deploy.

## Why `k8s-bootstrap` uses VM IDs as command triggers. After the VMs were renumbered, its preview wanted 16 replacements and 5 updates. Deploying that would re-run the unpinned k3s installer on all six nodes and append duplicate `/etc/fstab` entries on the workers. ## What changes - All `command:` resources in this stack ignore changes to `create` and `triggers`, so they run once on a fresh install. - `start-master-2` now calls the `pve-esprimo` API, where `k3s-master-2` lives. This only affects fresh installs. `02-k8s-bootstrap` only deploys through manual dispatch, so merging does not start a deploy. ## Trade-off After recreating a VM, re-run its commands explicitly with `pulumi up --target-replace <urn>`. ## Verification `npm run typecheck` passes. `pulumi preview` shows 1 to create and 30 unchanged. The create is `wait-control-plane-vip-ready`, a read-only health check that was added after the last deploy.
claude-bot Bot added 1 commit 2026-11-22 02:58:38 +01:00
bug(k8s-bootstrap): stop re-running install commands on live nodes
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 40s
e3fab0e151
Bootstrap commands used VM IDs as triggers, so renumbering VMs would re-run the unpinned k3s installer on every node and append duplicate fstab entries. Treat them as run-once and re-run them explicitly after recreating a VM. Also start master-2 through pve-esprimo, where it now lives.
claude-bot Bot merged commit 5a2d32ea84 into main 2026-11-22 02:59:35 +01:00
Sign in to join this conversation.