Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav committed Mar 10, 2024
1 parent 7da4ace commit 249c8a7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/kubernetes-cluster/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2.1
* Added `os_disk_size_gb`, `os_disk_type` and `os_sku` variables to enable greater default node pool customisation.

## 2.0
* Added `log_categories` and `metric_categories` variables to enable configuration of Diagnostic Settings.
* Changed default log categories.
Expand Down
2 changes: 1 addition & 1 deletion modules/kubernetes-cluster/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0
2.1
3 changes: 3 additions & 0 deletions modules/kubernetes-cluster/src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ resource "azurerm_kubernetes_cluster" "main" {
max_count = var.node_max_count
min_count = var.node_min_count
node_count = var.node_count
os_disk_size_gb = var.os_disk_size_gb
os_disk_type = var.os_disk_type
os_sku = var.os_sku
temporary_name_for_rotation = "tmp"
vm_size = var.vm_size
vnet_subnet_id = var.subnet_id
Expand Down
15 changes: 15 additions & 0 deletions modules/kubernetes-cluster/src/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,21 @@ variable "outbound_type" {
default = "loadBalancer"
}

variable "os_disk_size_gb" {
type = number
default = 128
}

variable "os_disk_type" {
type = string
default = "Managed"
}

variable "os_sku" {
type = string
default = "Ubuntu"
}

variable "resource_group_name" {
type = string
}
Expand Down

0 comments on commit 249c8a7

Please sign in to comment.