From 107ad903875f7e4d8913dc0b480bf25cad72d030 Mon Sep 17 00:00:00 2001 From: Vedant Pareek Date: Tue, 29 Oct 2024 11:09:34 +0530 Subject: [PATCH 1/2] AKS standard tier --- aks.tf | 5 +++-- variables.tf | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/aks.tf b/aks.tf index 5db2854..7c85a7c 100644 --- a/aks.tf +++ b/aks.tf @@ -13,7 +13,7 @@ resource "azurerm_role_assignment" "network_contributor_cluster" { module "aks" { source = "Azure/aks/azurerm" - version = "9.0.0" + version = "9.1.0" resource_group_name = var.resource_group_name cluster_name = var.name location = var.location @@ -87,5 +87,6 @@ module "aks" { rbac_aad = false role_based_access_control_enabled = false - tags = local.tags + sku_tier = var.sku_tier + tags = local.tags } \ No newline at end of file diff --git a/variables.tf b/variables.tf index 44aa225..bb1fa48 100644 --- a/variables.tf +++ b/variables.tf @@ -35,6 +35,12 @@ variable "disk_size" { type = string } +variable "sku_tier" { + description = "SKU tier of the cluster. Defaults to standard" + default = "Standard" + type = string +} + ################################################################################ # Initial Nodepool configurations ################################################################################ From da8283fb9b9aa6a65712d4d03124a3f54e4fd3b3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 29 Oct 2024 05:40:43 +0000 Subject: [PATCH 2/2] terraform-docs: automated action --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b296a0f..e6a1a7c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Truefoundry Azure Cluster Module | Name | Source | Version | |------|--------|---------| -| [aks](#module\_aks) | Azure/aks/azurerm | 9.0.0 | +| [aks](#module\_aks) | Azure/aks/azurerm | 9.1.0 | ## Resources @@ -32,10 +32,10 @@ Truefoundry Azure Cluster Module | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [allowed\_ip\_ranges](#input\_allowed\_ip\_ranges) | Allowed IP ranges to connect to the cluster | `list(string)` |
[
"0.0.0.0/0"
]
| no | +| [allowed\_ip\_ranges](#input\_allowed\_ip\_ranges) | Allowed IP ranges to connect to the cluster | `list(string)` |
[
"0.0.0.0/0"
]
| no | | [control\_plane](#input\_control\_plane) | Whether the cluster is control plane | `bool` | n/a | yes | | [control\_plane\_instance\_type](#input\_control\_plane\_instance\_type) | Whether the cluster is control plane | `string` | `"Standard_D2s_v5"` | no | -| [cpu\_pools](#input\_cpu\_pools) | CPU pools to be attached |
list(object({
name = string
instance_type = string
max_count = optional(number, 2)
enable_spot_pool = optional(bool, true)
enable_on_demand_pool = optional(bool, true)
}))
| n/a | yes | +| [cpu\_pools](#input\_cpu\_pools) | CPU pools to be attached |
list(object({
name = string
instance_type = string
max_count = optional(number, 2)
enable_spot_pool = optional(bool, true)
enable_on_demand_pool = optional(bool, true)
}))
| n/a | yes | | [disk\_driver\_version](#input\_disk\_driver\_version) | Version of disk driver. Supported values `v1` and `v2` | `string` | `"v1"` | no | | [disk\_size](#input\_disk\_size) | Disk size of the initial node pool in GB | `string` | `"100"` | no | | [dns\_ip](#input\_dns\_ip) | IP from service CIDR used for internal DNS | `string` | `"10.255.0.10"` | no | @@ -44,7 +44,7 @@ Truefoundry Azure Cluster Module | [enable\_file\_driver](#input\_enable\_file\_driver) | Enable file storage provider | `bool` | `true` | no | | [enable\_snapshot\_controller](#input\_enable\_snapshot\_controller) | Enable snapshot controller | `bool` | `true` | no | | [enable\_storage\_profile](#input\_enable\_storage\_profile) | Enable storage profile for the cluster. If disabled `enable_blob_driver`, `enable_file_driver`, `enable_disk_driver` and `enable_snapshot_controller` will have no impact | `bool` | `true` | no | -| [gpu\_pools](#input\_gpu\_pools) | GPU pools to be attached |
list(object({
name = string
instance_type = string
max_count = optional(number, 2)
enable_spot_pool = optional(bool, true)
enable_on_demand_pool = optional(bool, true)
}))
| n/a | yes | +| [gpu\_pools](#input\_gpu\_pools) | GPU pools to be attached |
list(object({
name = string
instance_type = string
max_count = optional(number, 2)
enable_spot_pool = optional(bool, true)
enable_on_demand_pool = optional(bool, true)
}))
| n/a | yes | | [initial\_node\_pool\_max\_count](#input\_initial\_node\_pool\_max\_count) | Max count in the initial node pool | `number` | `2` | no | | [initial\_node\_pool\_max\_surge](#input\_initial\_node\_pool\_max\_surge) | Max surge in percentage for the intial node pool | `string` | `"10"` | no | | [initial\_node\_pool\_min\_count](#input\_initial\_node\_pool\_min\_count) | Min count in the initial node pool | `number` | `1` | no | @@ -62,6 +62,7 @@ Truefoundry Azure Cluster Module | [private\_cluster\_enabled](#input\_private\_cluster\_enabled) | Private cluster | `bool` | `false` | no | | [resource\_group\_name](#input\_resource\_group\_name) | Name of the resource group | `string` | n/a | yes | | [service\_cidr](#input\_service\_cidr) | CIDR of the services in cluster | `string` | `"10.255.0.0/16"` | no | +| [sku\_tier](#input\_sku\_tier) | SKU tier of the cluster. Defaults to standard | `string` | `"Standard"` | no | | [subnet\_id](#input\_subnet\_id) | Subnet Id for the cluster | `string` | n/a | yes | | [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no | | [vnet\_id](#input\_vnet\_id) | Vnet ID for the cluster | `string` | n/a | yes |