Skip to content

Commit

Permalink
fix: add these to the config to prevent drift (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
monteiro-renato authored Dec 19, 2024
1 parent aed7cf7 commit 8024b9a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ resource "azurerm_kubernetes_cluster" "k6tests" {
name = "default"
node_count = 1
vm_size = "Standard_D2_v2"
upgrade_settings { # Adding these to keep plans clean
drain_timeout_in_minutes = 0
max_surge = "10%"
node_soak_duration_in_minutes = 0
}
}

workload_identity_enabled = true
Expand All @@ -30,6 +35,10 @@ resource "azurerm_kubernetes_cluster_node_pool" "spot" {
eviction_policy = "Delete"
spot_max_price = -1 # (the current on-demand price for a Virtual Machine)
node_labels = {
"kubernetes.azure.com/scalesetpriority" : "spot", # Automatically added by Azure
spot : true
}
node_taints = [
"kubernetes.azure.com/scalesetpriority=spot:NoSchedule", # Automatically added by Azure
]
}

0 comments on commit 8024b9a

Please sign in to comment.