Skip to content

Commit

Permalink
Merge pull request #271 from mr-onion-2/master
Browse files Browse the repository at this point in the history
Add support for pod subnet
  • Loading branch information
lonegunmanb authored Nov 11, 2022
2 parents ce49be5 + 4d1d809 commit 450e007
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ No modules.
| <a name="input_orchestrator_version"></a> [orchestrator\_version](#input\_orchestrator\_version) | Specify which Kubernetes release to use for the orchestration layer. The default used is the latest Kubernetes version available in the region | `string` | `null` | no |
| <a name="input_os_disk_size_gb"></a> [os\_disk\_size\_gb](#input\_os\_disk\_size\_gb) | Disk size of nodes in GBs. | `number` | `50` | no |
| <a name="input_os_disk_type"></a> [os\_disk\_type](#input\_os\_disk\_type) | The type of disk which should be used for the Operating System. Possible values are `Ephemeral` and `Managed`. Defaults to `Managed`. Changing this forces a new resource to be created. | `string` | `"Managed"` | no |
| <a name="input_pod_subnet_id"></a> [pod\_subnet\_id](#input\_pod\_subnet\_id) | (Optional) The ID of the Subnet where the pods in the default Node Pool should exist. Changing this forces a new resource to be created. | `string` | `null` | no |
| <a name="input_prefix"></a> [prefix](#input\_prefix) | (Required) The prefix for the resources created in the specified Azure Resource Group | `string` | n/a | yes |
| <a name="input_private_cluster_enabled"></a> [private\_cluster\_enabled](#input\_private\_cluster\_enabled) | If true cluster API server will be exposed only on internal IP address and available only in cluster vnet. | `bool` | `false` | no |
| <a name="input_private_cluster_public_fqdn_enabled"></a> [private\_cluster\_public\_fqdn\_enabled](#input\_private\_cluster\_public\_fqdn\_enabled) | (Optional) Specifies whether a Public FQDN for this Private Cluster should be added. Defaults to `false`. | `bool` | `false` | no |
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ resource "azurerm_kubernetes_cluster" "main" {
orchestrator_version = var.orchestrator_version
os_disk_size_gb = var.os_disk_size_gb
os_disk_type = var.os_disk_type
pod_subnet_id = var.pod_subnet_id
tags = merge(var.tags, var.agents_tags)
type = var.agents_type
ultra_ssd_enabled = var.ultra_ssd_enabled
Expand All @@ -78,6 +79,7 @@ resource "azurerm_kubernetes_cluster" "main" {
orchestrator_version = var.orchestrator_version
os_disk_size_gb = var.os_disk_size_gb
os_disk_type = var.os_disk_type
pod_subnet_id = var.pod_subnet_id
tags = merge(var.tags, var.agents_tags)
type = var.agents_type
ultra_ssd_enabled = var.ultra_ssd_enabled
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ variable "os_disk_type" {
nullable = false
}

variable "pod_subnet_id" {
type = string
description = "(Optional) The ID of the Subnet where the pods in the default Node Pool should exist. Changing this forces a new resource to be created."
default = null
}

variable "private_cluster_enabled" {
type = bool
description = "If true cluster API server will be exposed only on internal IP address and available only in cluster vnet."
Expand Down

0 comments on commit 450e007

Please sign in to comment.