Skip to content

Commit 0145230

Browse files
committed
Linux102-New-NodePool-Addition
1 parent 636f179 commit 0145230

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Create Linux Azure AKS Node Pool
2+
resource "azurerm_kubernetes_cluster_node_pool" "linux101" {
3+
availability_zones = [1, 2, 3]
4+
enable_auto_scaling = true
5+
kubernetes_cluster_id = azurerm_kubernetes_cluster.aks_cluster.id
6+
max_count = 3
7+
min_count = 1
8+
mode = "User"
9+
name = "linux102"
10+
orchestrator_version = data.azurerm_kubernetes_service_versions.current.latest_version
11+
os_disk_size_gb = 30
12+
os_type = "Linux" # Default is Linux, we can change to Windows
13+
vm_size = "Standard_DS2_v2"
14+
priority = "Regular" # Default is Regular, we can change to Spot with additional settings like eviction_policy, spot_max_price, node_labels and node_taints
15+
node_labels = {
16+
"nodepool-type" = "user"
17+
"environment" = var.environment
18+
"nodepoolos" = "linux"
19+
"ui-app" = "reactjs-apps"
20+
}
21+
tags = {
22+
"nodepool-type" = "user"
23+
"environment" = var.environment
24+
"nodepoolos" = "linux"
25+
"ui-app" = "reactjs-apps"
26+
}
27+
}

0 commit comments

Comments
 (0)