File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ module "aks" {
3636 client_id = "your-service-principal-client-appid"
3737 client_secret = "your-service-principal-client-password"
3838 prefix = "prefix"
39+ network_plugin = "azure"
3940 vnet_subnet_id = module.network.vnet_subnets[0]
4041 os_disk_size_gb = 50
4142 enable_kube_dashboard = true
Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ resource "azurerm_kubernetes_cluster" "main" {
9696 }
9797 }
9898
99+ network_profile {
100+ network_plugin = var. network_plugin
101+ }
102+
99103 tags = var. tags
100104}
101105
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ module aks {
3030 resource_group_name = azurerm_resource_group. main . name
3131 client_id = var. client_id
3232 client_secret = var. client_secret
33+ network_plugin = " azure"
3334 vnet_subnet_id = azurerm_subnet. test . id
3435 os_disk_size_gb = 60
3536 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" {
139139 type = string
140140 default = null
141141}
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