-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
28 lines (24 loc) · 792 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
resource "azurerm_resource_group" "container_service" {
name = "${var.prefix}-k8s-resources"
location = "${var.location}"
}
resource "azurerm_kubernetes_cluster" "container_service" {
name = "${var.prefix}-k8s"
location = "${azurerm_resource_group.container_service.location}"
resource_group_name = "${azurerm_resource_group.container_service.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 = "Development"
}
}