Skip to content

Commit

Permalink
Merge pull request #6 from truefoundry/aks-1-27
Browse files Browse the repository at this point in the history
Added orchestrator and upgraded AKS to 1.27
  • Loading branch information
dunefro authored Oct 30, 2023
2 parents fb8f3a1 + ddf3aa4 commit 1b49ee3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Truefoundry Azure Cluster Module
| <a name="input_enable_storage_profile"></a> [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 |
| <a name="input_intial_node_pool_instance_type"></a> [intial\_node\_pool\_instance\_type](#input\_intial\_node\_pool\_instance\_type) | Instance size of the initial node pool | `string` | `"Standard_D2s_v5"` | no |
| <a name="input_intial_node_pool_spot_instance_type"></a> [intial\_node\_pool\_spot\_instance\_type](#input\_intial\_node\_pool\_spot\_instance\_type) | Instance size of the initial node pool | `string` | `"Standard_D4s_v5"` | no |
| <a name="input_kubernetes_version"></a> [kubernetes\_version](#input\_kubernetes\_version) | Version of the kubernetes engine | `string` | `"1.26"` | no |
| <a name="input_kubernetes_version"></a> [kubernetes\_version](#input\_kubernetes\_version) | Version of the kubernetes engine | `string` | `"1.27"` | no |
| <a name="input_location"></a> [location](#input\_location) | Location of the resource group | `string` | n/a | yes |
| <a name="input_name"></a> [name](#input\_name) | Name of the cluster | `string` | n/a | yes |
| <a name="input_network_plugin"></a> [network\_plugin](#input\_network\_plugin) | Network plugin to use for cluster | `string` | `"kubenet"` | no |
Expand Down
13 changes: 7 additions & 6 deletions aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ module "aks" {
agents_labels = {
"truefoundry" : "essential"
}
agents_count = local.intial_node_pool_min_count
agents_max_count = local.intial_node_pool_max_count
agents_min_count = local.intial_node_pool_min_count
agents_pool_name = "initial"
agents_size = var.intial_node_pool_instance_type
agents_tags = local.tags
agents_count = local.intial_node_pool_min_count
agents_max_count = local.intial_node_pool_max_count
agents_min_count = local.intial_node_pool_min_count
agents_pool_name = "initial"
agents_size = var.intial_node_pool_instance_type
agents_tags = local.tags
orchestrator_version = var.kubernetes_version

# autoscaler configuration
auto_scaler_profile_enabled = true
Expand Down
1 change: 1 addition & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ locals {
enable_host_encryption = false
enable_node_public_ip = false
eviction_policy = "Delete"
orchestrator_version = var.kubernetes_version
node_taints = [
"kubernetes.azure.com/scalesetpriority=spot:NoSchedule"
]
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variable "name" {
}
variable "kubernetes_version" {
description = "Version of the kubernetes engine"
default = "1.26"
default = "1.27"
type = string
}

Expand Down

0 comments on commit 1b49ee3

Please sign in to comment.