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
|
|
@ -61,6 +61,16 @@ resource "proxmox_virtual_environment_vm" "talos-node" {
|
|||
}
|
||||
}
|
||||
|
||||
dynamic "hostpci" {
|
||||
for_each = var.node.gpu == true ? [1] : []
|
||||
content {
|
||||
device = "hostpci0"
|
||||
mapping = "A380_GPU"
|
||||
pcie = true
|
||||
rombar = true
|
||||
}
|
||||
}
|
||||
|
||||
initialization {
|
||||
datastore_id = var.node.storagepool
|
||||
ip_config {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ variable "node" {
|
|||
ipv4_address = string
|
||||
ipv4_gateway = string
|
||||
cpu = number
|
||||
gpu = optional(bool, false)
|
||||
memory = number
|
||||
disk = string
|
||||
storagepool = string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue