File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ module "aks" {
36
36
client_id = "your-service-principal-client-appid"
37
37
client_secret = "your-service-principal-client-password"
38
38
prefix = "prefix"
39
+ network_plugin = "azure"
39
40
vnet_subnet_id = module.network.vnet_subnets[0]
40
41
os_disk_size_gb = 50
41
42
enable_kube_dashboard = true
Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ resource "azurerm_kubernetes_cluster" "main" {
96
96
}
97
97
}
98
98
99
+ network_profile {
100
+ network_plugin = var. network_plugin
101
+ }
102
+
99
103
tags = var. tags
100
104
}
101
105
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ module aks {
30
30
resource_group_name = azurerm_resource_group. main . name
31
31
client_id = var. client_id
32
32
client_secret = var. client_secret
33
+ network_plugin = " azure"
33
34
vnet_subnet_id = azurerm_subnet. test . id
34
35
os_disk_size_gb = 60
35
36
enable_http_application_routing = true
Original file line number Diff line number Diff line change @@ -139,3 +139,9 @@ variable "rbac_aad_server_app_secret" {
139
139
type = string
140
140
default = null
141
141
}
142
+
143
+ variable "network_plugin" {
144
+ description = " Network plugin to use for networking."
145
+ type = string
146
+ default = " kubenet"
147
+ }
You can’t perform that action at this time.
0 commit comments