-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.tf
38 lines (30 loc) · 931 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
33
34
35
36
37
38
#############################################################
# AKS RESOURCES
#############################################################
resource "azurerm_kubernetes_cluster" "terraform-aks" {
name = "${var.cluster_name}"
location = "${var.location}"
dns_prefix = "${var.dns_prefix}"
resource_group_name = "${var.resource_group}"
linux_profile {
admin_username = "${var.admin_username}"
ssh_key {
key_data = "${var.ssh_key}"
}
}
agent_pool_profile {
name = "${var.agent_pool_name}"
count = "${var.worker_nodes_nb}"
vm_size = "${var.worker_nodes_size}"
os_type = "${var.worker_nodes_os_types}"
# Required for advanced networking
vnet_subnet_id = "${var.aks_subnet_id}"
}
service_principal {
client_id = "${var.client_id}"
client_secret = "${var.client_secret}"
}
network_profile {
network_plugin = "${var.network_profile}"
}
}