Skip to content

Commit 15836de

Browse files
committed
add aci_connector
1 parent ee372d2 commit 15836de

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ No modules.
271271

272272
| Name | Description | Type | Default | Required |
273273
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|-----------------------------|:--------:|
274+
| <a name="input_aci_connector_linux_enabled"></a> [aci\_connector\_linux\_enabled](#input\_aci\_connector\_linux\_enabled) | Enable Virtual Node pool | `bool` | `false` | no |
275+
| <a name="input_aci_connector_linux_subnet_name"></a> [aci\_connector\_linux\_subnet\_name](#input\_aci\_connector\_linux\_subnet\_name) | (Optional) aci\_connector\_linux subnet name | `string` | `null` | no |
274276
| <a name="input_admin_username"></a> [admin\_username](#input\_admin\_username) | The username of the local administrator to be created on the Kubernetes cluster. Set this variable to `null` to turn off the cluster's `linux_profile`. Changing this forces a new resource to be created. | `string` | `null` | no |
275277
| <a name="input_agents_availability_zones"></a> [agents\_availability\_zones](#input\_agents\_availability\_zones) | (Optional) A list of Availability Zones across which the Node Pool should be spread. Changing this forces a new resource to be created. | `list(string)` | `null` | no |
276278
| <a name="input_agents_count"></a> [agents\_count](#input\_agents\_count) | The number of Agents that should exist in the Agent Pool. Please set `agents_count` `null` while `enable_auto_scaling` is `true` to avoid possible `agents_count` changes. | `number` | `2` | no |

main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ resource "azurerm_kubernetes_cluster" "main" {
8282
zones = var.agents_availability_zones
8383
}
8484
}
85+
dynamic "aci_connector_linux" {
86+
for_each = var.aci_connector_linux_enabled ? ["aci_connector_linux"] : []
8587

88+
content {
89+
subnet_name = var.aci_connector_linux_subnet_name
90+
}
91+
}
8692
dynamic "azure_active_directory_role_based_access_control" {
8793
for_each = var.role_based_access_control_enabled && var.rbac_aad_managed ? ["rbac"] : []
8894

@@ -122,6 +128,7 @@ resource "azurerm_kubernetes_cluster" "main" {
122128
subnet_id = var.ingress_application_gateway_subnet_id
123129
}
124130
}
131+
125132
dynamic "key_vault_secrets_provider" {
126133
for_each = var.key_vault_secrets_provider_enabled ? ["key_vault_secrets_provider"] : []
127134

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ variable "resource_group_name" {
88
description = "The resource group name to be imported"
99
}
1010

11+
variable "aci_connector_linux_enabled" {
12+
description = "Enable Virtual Node pool"
13+
type = bool
14+
default = false
15+
}
16+
17+
variable "aci_connector_linux_subnet_name" {
18+
description = "(Optional) aci_connector_linux subnet name"
19+
type = string
20+
default = null
21+
}
22+
1123
variable "admin_username" {
1224
type = string
1325
description = "The username of the local administrator to be created on the Kubernetes cluster. Set this variable to `null` to turn off the cluster's `linux_profile`. Changing this forces a new resource to be created."

0 commit comments

Comments
 (0)