-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
32 lines (27 loc) · 798 Bytes
/
main.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
resource "azurerm_resource_group" "example" {
name = "${var.prefix}-k8s-resources"
location = "${var.location}"
tags = {
DaysToDelete = "Never"
}
}
resource "azurerm_kubernetes_cluster" "example" {
name = "${var.prefix}-k8s"
location = "${azurerm_resource_group.example.location}"
resource_group_name = "${azurerm_resource_group.example.name}"
dns_prefix = "${var.prefix}-k8s"
agent_pool_profile {
name = "default"
count = 1
vm_size = "Standard_D1_v2"
os_type = "Linux"
os_disk_size_gb = 30
}
service_principal {
client_id = "${var.kubernetes_client_id}"
client_secret = "${var.kubernetes_client_secret}"
}
tags = {
Environment = "Production"
}
}