feat: Manage storage nic config through machineconfig

This commit is contained in:
Peter 2025-12-15 18:23:22 +01:00
parent 30d3b3b478
commit 628443c06c
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
4 changed files with 28 additions and 14 deletions

View file

@ -68,16 +68,19 @@ locals {
nodes = [
{
name = "worker01"
ip_address = "10.13.37.21"
name = "worker01"
ip_address = "10.13.37.21"
storage_address = "10.0.69.21"
},
{
name = "worker02"
ip_address = "10.13.37.22"
name = "worker02"
ip_address = "10.13.37.22"
storage_address = "10.0.69.22"
},
{
name = "worker03"
ip_address = "10.13.37.23"
name = "worker03"
ip_address = "10.13.37.23"
storage_address = "10.0.69.23"
},
]
}
@ -163,10 +166,11 @@ module "talos-bootstrap" {
],
[
for node in local.workers.nodes : {
name = format("k8s-wheatley-%s", node.name)
type = "worker"
ipv4_address = node.ip_address
pvc_disks = local.workers.pvc_disks
name = format("k8s-wheatley-%s", node.name)
type = "worker"
ipv4_address = node.ip_address
storage_address = node.storage_address
pvc_disks = local.workers.pvc_disks
}
]
)