feat(k8s-wheatley): Prepare for GPU nodes

This commit is contained in:
Peter 2026-01-03 13:05:56 +01:00
parent fbbfee32a4
commit c6d4143df2
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
7 changed files with 25 additions and 4 deletions

View file

@ -71,16 +71,19 @@ locals {
name = "worker01"
ip_address = "10.13.37.21"
storage_address = "10.0.69.21"
gpu_enabled = false
},
{
name = "worker02"
ip_address = "10.13.37.22"
storage_address = "10.0.69.22"
gpu_enabled = false
},
{
name = "worker03"
ip_address = "10.13.37.23"
storage_address = "10.0.69.23"
gpu_enabled = false
},
]
}
@ -122,6 +125,7 @@ module "workers" {
name = format("k8s-wheatley-%s", each.value.name)
ipv4_address = each.value.ip_address
cpu = local.workers.cpu
gpu = each.value.gpu_enabled
memory = local.workers.memory
disk = local.workers.disk
storagepool = local.workers.storagepool
@ -171,6 +175,7 @@ module "talos-bootstrap" {
ipv4_address = node.ip_address
storage_address = node.storage_address
pvc_disks = local.workers.pvc_disks
gpu_enabled = node.gpu_enabled
}
]
)