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" {
34
34
temporary_name_for_rotation = var. configuration . node_pool . temporary_name_for_rotation
35
35
enable_host_encryption = true
36
36
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
+ }
37
41
}
38
42
39
43
identity {
@@ -46,7 +50,12 @@ resource "azurerm_kubernetes_cluster" "aks" {
46
50
oms_agent {
47
51
log_analytics_workspace_id = var. log_analytics_id
48
52
}
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
+ }
50
59
dynamic "key_management_service" {
51
60
for_each = var. configuration . kv_key_management_service_id == null ? [] : [" key_management_service" ]
52
61
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ run "plan" {
19
19
name = " az-aks-cluster"
20
20
configuration = {
21
21
version = " 1.28.5"
22
- sku = " Free "
22
+ sku = " Standard "
23
23
private_cluster = true
24
24
user_assigned_identity_id = run.setup.assigned_identity_id
25
25
local_account_disabled = true
@@ -100,7 +100,7 @@ run "apply" {
100
100
name = " az-aks-cluster"
101
101
configuration = {
102
102
version = " 1.28.5"
103
- sku = " Free "
103
+ sku = " Standard "
104
104
private_cluster = true
105
105
user_assigned_identity_id = run.setup.assigned_identity_id
106
106
local_account_disabled = true
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ variable "configuration" {
23
23
public_ssh_key = optional (string )
24
24
automatic_channel_upgrade = optional (string )
25
25
kv_key_management_service_id = optional (string )
26
+ enable_microsoft_defender = optional (bool , true )
26
27
node_pool = object ({
27
28
type = string
28
29
count = number
@@ -32,6 +33,7 @@ variable "configuration" {
32
33
max_pods = optional (number , 110 )
33
34
temporary_name_for_rotation = optional (string )
34
35
only_critical_addons_enabled = optional (bool , true )
36
+ upgrade_max_surge = optional (string , " 10%" )
35
37
})
36
38
rbac = object ({
37
39
enabled = bool
You can’t perform that action at this time.
0 commit comments