Skip to content

Commit

Permalink
added necessary var for the mks module
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Orlov committed Dec 16, 2024
1 parent b9f6f11 commit 5c73f8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/mks/k8s-nodegroup-gpu/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ resource "selectel_mks_nodegroup_v1" "nodegroup_1" {
volume_type = var.volume_type
labels = var.labels
flavor_id = var.flavor_id

install_nvidia_device_plugin = true

dynamic "taints" {
for_each = var.taints[*]
content {
Expand Down
2 changes: 2 additions & 0 deletions modules/mks/k8s-nodegroup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ resource "selectel_mks_nodegroup_v1" "nodegroup_1" {
volume_type = var.volume_type
labels = var.labels

install_nvidia_device_plugin = false

cpus = var.cpus != "" && var.flavor_id == "" ? var.cpus : null
ram_mb = var.ram_mb != "" && var.flavor_id == "" ? var.ram_mb : null
flavor_id = var.flavor_id != "" && var.ram_mb == "" && var.cpus == "" ? var.flavor_id : null
Expand Down

0 comments on commit 5c73f8a

Please sign in to comment.