File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ resource "azurerm_kubernetes_cluster" "aks" {
3434 temporary_name_for_rotation = var. configuration . node_pool . temporary_name_for_rotation
3535 enable_host_encryption = true
3636 only_critical_addons_enabled = var. configuration . node_pool . only_critical_addons_enabled
37+
38+ upgrade_settings {
39+ max_surge = var. configuration . node_pool . upgrade_max_surge
40+ }
3741 }
3842
3943 identity {
@@ -46,7 +50,12 @@ resource "azurerm_kubernetes_cluster" "aks" {
4650 oms_agent {
4751 log_analytics_workspace_id = var. log_analytics_id
4852 }
49-
53+ dynamic "microsoft_defender" {
54+ for_each = var. configuration . enable_microsoft_defender == false ? [] : [" microsoft_defender" ]
55+ content {
56+ log_analytics_workspace_id = var. log_analytics_id
57+ }
58+ }
5059 dynamic "key_management_service" {
5160 for_each = var. configuration . kv_key_management_service_id == null ? [] : [" key_management_service" ]
5261
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ run "plan" {
1919 name = " az-aks-cluster"
2020 configuration = {
2121 version = " 1.28.5"
22- sku = " Free "
22+ sku = " Standard "
2323 private_cluster = true
2424 user_assigned_identity_id = run.setup.assigned_identity_id
2525 local_account_disabled = true
@@ -100,7 +100,7 @@ run "apply" {
100100 name = " az-aks-cluster"
101101 configuration = {
102102 version = " 1.28.5"
103- sku = " Free "
103+ sku = " Standard "
104104 private_cluster = true
105105 user_assigned_identity_id = run.setup.assigned_identity_id
106106 local_account_disabled = true
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ variable "configuration" {
2323 public_ssh_key = optional (string )
2424 automatic_channel_upgrade = optional (string )
2525 kv_key_management_service_id = optional (string )
26+ enable_microsoft_defender = optional (bool , true )
2627 node_pool = object ({
2728 type = string
2829 count = number
@@ -32,6 +33,7 @@ variable "configuration" {
3233 max_pods = optional (number , 110 )
3334 temporary_name_for_rotation = optional (string )
3435 only_critical_addons_enabled = optional (bool , true )
36+ upgrade_max_surge = optional (string , " 10%" )
3537 })
3638 rbac = object ({
3739 enabled = bool
You can’t perform that action at this time.
0 commit comments