From f2acafd737caed9b6b6c9b2cce0561cb8330e1dc Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Tue, 16 Dec 2025 21:23:01 +0100 Subject: [PATCH] fix: Ensure correct nodeIPs are set on workernodes --- pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/main.tf | 1 - .../talos-bootstrap/templates/machineconfig-worker.yaml.tmpl | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/main.tf b/pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/main.tf index fed2237..117a5ae 100644 --- a/pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/main.tf +++ b/pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/main.tf @@ -76,7 +76,6 @@ resource "talos_machine_configuration_apply" "config_apply_worker" { templatefile("${path.module}/templates/machineconfig-worker.yaml.tmpl", { hostname = each.value.name cluster_name = var.node_config.cluster_name - vip_address = var.node_config.cluster_endpoint node_name = format("%s.wheatley.in", var.node_config.proxmox_node) storage_address = each.value.storage_address machine_type = each.value.type diff --git a/pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/templates/machineconfig-worker.yaml.tmpl b/pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/templates/machineconfig-worker.yaml.tmpl index aca6c48..65e4900 100644 --- a/pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/templates/machineconfig-worker.yaml.tmpl +++ b/pve01.wheatley.in/k8s-wheatley/modules/talos-bootstrap/templates/machineconfig-worker.yaml.tmpl @@ -23,6 +23,9 @@ machine: extraConfig: imageGCHighThresholdPercent: 75 imageGCLowThresholdPercent: 70 + nodeIP: + validSubnets: + - 10.13.37.0/24 kernel: modules: - name: drbd