From 7a397467c3ce8e83cc2e003178d57f8884ebb3ec Mon Sep 17 00:00:00 2001 From: kasun Date: Fri, 29 May 2026 12:11:38 +0200 Subject: [PATCH] saving vmIds to variables to use later for k8s installation --- proxmox-infra/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/proxmox-infra/index.ts b/proxmox-infra/index.ts index 2ed09ad..bb2f168 100644 --- a/proxmox-infra/index.ts +++ b/proxmox-infra/index.ts @@ -244,3 +244,13 @@ export const clusterInfo = k3sVms.map((vm, index) => ({ name: nodeConfigs[index].name, role: nodeConfigs[index].role, })); + +// Individual vmId exports — used by k8s-bootstrap to start VMs and run guest exec. +// Order matches nodeConfigs: master-1, master-2, worker-1, master-3, worker-2. +export const vmIds = { + master1: k3sVms[0].vmId, + master2: k3sVms[1].vmId, + worker1: k3sVms[2].vmId, + master3: k3sVms[3].vmId, + worker2: k3sVms[4].vmId, +};