Skip to content

Commit

Permalink
Support setting network_plugin (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanevet authored Dec 10, 2020
1 parent 8be20d1 commit a6acfa2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module "aks" {
client_id = "your-service-principal-client-appid"
client_secret = "your-service-principal-client-password"
prefix = "prefix"
network_plugin = "azure"
vnet_subnet_id = module.network.vnet_subnets[0]
os_disk_size_gb = 50
enable_kube_dashboard = true
Expand Down
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ resource "azurerm_kubernetes_cluster" "main" {
}
}

network_profile {
network_plugin = var.network_plugin
}

tags = var.tags
}

Expand Down
1 change: 1 addition & 0 deletions test/fixture/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module aks {
resource_group_name = azurerm_resource_group.main.name
client_id = var.client_id
client_secret = var.client_secret
network_plugin = "azure"
vnet_subnet_id = azurerm_subnet.test.id
os_disk_size_gb = 60
enable_http_application_routing = true
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,9 @@ variable "rbac_aad_server_app_secret" {
type = string
default = null
}

variable "network_plugin" {
description = "Network plugin to use for networking."
type = string
default = "kubenet"
}

0 comments on commit a6acfa2

Please sign in to comment.