Skip to content

Commit 3c5a57c

Browse files
CopilotLuizMacedo
andcommitted
Add environment-specific Terraform configuration examples
Co-authored-by: LuizMacedo <[email protected]>
1 parent 33d3ab9 commit 3c5a57c

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Development Environment Configuration
2+
environment = "dev"
3+
resource_group_name = "rg-eshoponweb"
4+
location = "East US"
5+
6+
# AKS Configuration
7+
cluster_name = "aks-eshoponweb"
8+
kubernetes_version = "1.28"
9+
node_count = 2
10+
vm_size = "Standard_B2s"
11+
12+
# Autoscaling
13+
enable_auto_scaling = false
14+
15+
# Network
16+
vnet_address_space = ["10.0.0.0/16"]
17+
subnet_prefixes = {
18+
aks = "10.0.1.0/24"
19+
gateway = "10.0.2.0/24"
20+
}
21+
22+
# ACR
23+
acr_sku = "Basic"
24+
25+
tags = {
26+
Environment = "Development"
27+
Application = "eShopOnWeb"
28+
ManagedBy = "Terraform"
29+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Production Environment Configuration
2+
environment = "production"
3+
resource_group_name = "rg-eshoponweb"
4+
location = "East US"
5+
6+
# AKS Configuration
7+
cluster_name = "aks-eshoponweb"
8+
kubernetes_version = "1.28"
9+
node_count = 3
10+
vm_size = "Standard_D4s_v3"
11+
12+
# Autoscaling
13+
enable_auto_scaling = true
14+
min_node_count = 3
15+
max_node_count = 10
16+
max_pods = 50
17+
18+
# Network
19+
vnet_address_space = ["10.2.0.0/16"]
20+
subnet_prefixes = {
21+
aks = "10.2.1.0/24"
22+
gateway = "10.2.2.0/24"
23+
}
24+
25+
# ACR
26+
acr_sku = "Premium"
27+
28+
tags = {
29+
Environment = "Production"
30+
Application = "eShopOnWeb"
31+
ManagedBy = "Terraform"
32+
CostCenter = "Engineering"
33+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Staging Environment Configuration
2+
environment = "staging"
3+
resource_group_name = "rg-eshoponweb"
4+
location = "East US"
5+
6+
# AKS Configuration
7+
cluster_name = "aks-eshoponweb"
8+
kubernetes_version = "1.28"
9+
node_count = 2
10+
vm_size = "Standard_D2s_v3"
11+
12+
# Autoscaling
13+
enable_auto_scaling = true
14+
min_node_count = 2
15+
max_node_count = 4
16+
17+
# Network
18+
vnet_address_space = ["10.1.0.0/16"]
19+
subnet_prefixes = {
20+
aks = "10.1.1.0/24"
21+
gateway = "10.1.2.0/24"
22+
}
23+
24+
# ACR
25+
acr_sku = "Standard"
26+
27+
tags = {
28+
Environment = "Staging"
29+
Application = "eShopOnWeb"
30+
ManagedBy = "Terraform"
31+
}

0 commit comments

Comments
 (0)