Skip to content

Commit a6acfa2

Browse files
authored
Support setting network_plugin (Azure#76)
1 parent 8be20d1 commit a6acfa2

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff 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

main.tf

+4
Original file line numberDiff line numberDiff 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

test/fixture/main.tf

+1
Original file line numberDiff line numberDiff 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

variables.tf

+6
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)