-
Notifications
You must be signed in to change notification settings - Fork 2
/
aks.tf
50 lines (44 loc) · 1.21 KB
/
aks.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
resource "azurerm_resource_group" "cicd" {
name = "multi-arch-cicd"
location = "East US 2"
}
resource "azurerm_kubernetes_cluster" "cicd" {
name = "multi-arch-cicd"
location = azurerm_resource_group.cicd.location
resource_group_name = azurerm_resource_group.cicd.name
dns_prefix = "multiarchcicd"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_DS2_v2"
tags = {
environment = "dev"
}
}
identity {
type = "SystemAssigned"
}
tags = {
environment = "dev"
}
}
resource "azurerm_kubernetes_cluster_node_pool" "amd64" {
name = "amd64pool"
kubernetes_cluster_id = azurerm_kubernetes_cluster.cicd.id
vm_size = "Standard_DS2_v2" # AMD-based instance
node_count = 1
os_type = "Linux"
tags = {
environment = "dev"
}
}
resource "azurerm_kubernetes_cluster_node_pool" "arm64" {
name = "arm64pool"
kubernetes_cluster_id = azurerm_kubernetes_cluster.cicd.id
vm_size = "Standard_D4ps_v5" # ARM-based instance
node_count = 1
os_type = "Linux"
tags = {
environment = "dev"
}
}