From 8024b9a5932de7693b13e51ed0adafbfe5d52e2d Mon Sep 17 00:00:00 2001 From: Renato Monteiro <45536168+monteiro-renato@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:55:41 +0100 Subject: [PATCH] fix: add these to the config to prevent drift (#1194) --- .../altinn-monitor-test-rg/k6_tests_rg_k8s.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/infrastructure/adminservices-test/altinn-monitor-test-rg/k6_tests_rg_k8s.tf b/infrastructure/adminservices-test/altinn-monitor-test-rg/k6_tests_rg_k8s.tf index f5d3aa7d..739af0e7 100644 --- a/infrastructure/adminservices-test/altinn-monitor-test-rg/k6_tests_rg_k8s.tf +++ b/infrastructure/adminservices-test/altinn-monitor-test-rg/k6_tests_rg_k8s.tf @@ -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 @@ -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 + ] }