-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathaks.tf
43 lines (36 loc) · 1.12 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
resource "azurerm_resource_group" "aks" {
name = "aks-rg"
location = var.aks_location
tags = var.tags
}
# Azure Kubernetes Service cluster hosting core web services of my website https://schnerring.net
# - PostgreSQL
# - Plausible Analytics
# - Remark42
# - Matrix Synapse
resource "azurerm_kubernetes_cluster" "web_core" {
name = "web-core-aks"
resource_group_name = azurerm_resource_group.aks.name
location = azurerm_resource_group.aks.location
tags = var.tags
#automatic_channel_upgrade = "stable"
kubernetes_version = "1.25"
dns_prefix = "web-core-aks-${random_id.default.hex}"
# TODO: defaults to true since azurerm v3
# See: https://github.com/schnerring/infrastructure-core/issues/16
role_based_access_control_enabled = false
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_D2as_v4"
os_disk_type = "Ephemeral"
os_disk_size_gb = 50
}
network_profile {
network_plugin = "kubenet"
load_balancer_sku = "basic"
}
identity {
type = "SystemAssigned"
}
}