feat(k8s-wheatley): Prepare for GPU nodes
This commit is contained in:
parent
fbbfee32a4
commit
c6d4143df2
7 changed files with 25 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue