-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathmain.tf
More file actions
33 lines (28 loc) · 706 Bytes
/
main.tf
File metadata and controls
33 lines (28 loc) · 706 Bytes
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
# Copyright IBM Corp. 2017, 2025
# SPDX-License-Identifier: MPL-2.0
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.42"
}
}
}
resource "azurerm_resource_group" "default" {
name = var.cluster_name
location = var.location
}
resource "azurerm_kubernetes_cluster" "default" {
name = var.cluster_name
location = azurerm_resource_group.default.location
resource_group_name = azurerm_resource_group.default.name
dns_prefix = var.cluster_name
default_node_pool {
name = "test"
node_count = 1
vm_size = "Standard_DS2_v2"
}
identity {
type = "SystemAssigned"
}
}