Skip to content

Commit

Permalink
Add node public ip value to the variables.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
PubudU99 committed Dec 9, 2024
1 parent e3cc42a commit 8fe2a72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/azurerm/AKS-Generic/aks_cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "azurerm_kubernetes_cluster" "aks_cluster" {
min_count = var.default_node_pool_min_count
max_pods = var.default_node_pool_max_pods
orchestrator_version = var.default_node_pool_orchestrator_version
node_public_ip_enabled = false
node_public_ip_enabled = var.node_public_ip_enabled
only_critical_addons_enabled = var.default_node_pool_only_critical_addons_enabled
}

Expand Down
5 changes: 5 additions & 0 deletions modules/azurerm/AKS-Generic/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ variable "default_node_pool_orchestrator_version" {
description = "Kubernetes version for the default nodepool"
type = string
}
variable "node_public_ip_enabled" {
description = "Flag to assign each node have a public IP address"
type = bool
default = false
}

variable "default_node_pool_only_critical_addons_enabled" {
description = "Flag to only use default nodepool for Critical workloads"
Expand Down

0 comments on commit 8fe2a72

Please sign in to comment.