Major improvements: - Import existing Azure AKS cluster with aztfexport - Optimize VM size from Standard_D4d_v4 to Standard_D2as_v6 (50% cost reduction) - Configure availability zones to [1, 2] - Add comprehensive monitoring setup: * New Log Analytics Workspace * OMS Agent integration * Data Collection Rule for Container Insights * Email alerts for CPU and Memory - Refactor configuration: * Extract all values to variables.tf * Rename resources with meaningful names * Add detailed outputs.tf - Add project documentation: * Comprehensive README.md * cluster-status-commands.md with useful Azure CLI commands * terraform.tfvars.example template * .gitignore for sensitive files Infrastructure changes: - Resource Group: trusted_ai_demo_rg (Germany West Central) - AKS Cluster: trai_k8s_cluster (Kubernetes 1.33) - Node Pool: 2-3 nodes with auto-scaling - Network: VNet 10.0.0.0/16, Subnet 10.0.0.0/24 - Monitoring: Full Container Insights with alerts Cost optimization: ~€75/month (down from ~€140/month) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
51 lines
1.3 KiB
Terraform
51 lines
1.3 KiB
Terraform
output "resource_group_name" {
|
|
description = "Name of the resource group"
|
|
value = azurerm_resource_group.main.name
|
|
}
|
|
|
|
output "aks_cluster_name" {
|
|
description = "Name of the AKS cluster"
|
|
value = azurerm_kubernetes_cluster.main.name
|
|
}
|
|
|
|
output "aks_cluster_id" {
|
|
description = "ID of the AKS cluster"
|
|
value = azurerm_kubernetes_cluster.main.id
|
|
}
|
|
|
|
output "aks_cluster_fqdn" {
|
|
description = "FQDN of the AKS cluster"
|
|
value = azurerm_kubernetes_cluster.main.fqdn
|
|
}
|
|
|
|
output "aks_kube_config" {
|
|
description = "Kubeconfig for the AKS cluster"
|
|
value = azurerm_kubernetes_cluster.main.kube_config_raw
|
|
sensitive = true
|
|
}
|
|
|
|
output "aks_oidc_issuer_url" {
|
|
description = "OIDC issuer URL of the AKS cluster"
|
|
value = azurerm_kubernetes_cluster.main.oidc_issuer_url
|
|
}
|
|
|
|
output "vnet_id" {
|
|
description = "ID of the virtual network"
|
|
value = azurerm_virtual_network.main.id
|
|
}
|
|
|
|
output "subnet_id" {
|
|
description = "ID of the subnet"
|
|
value = azurerm_subnet.default.id
|
|
}
|
|
|
|
output "log_analytics_workspace_id" {
|
|
description = "ID of the Log Analytics workspace"
|
|
value = azurerm_log_analytics_workspace.main.id
|
|
}
|
|
|
|
output "log_analytics_workspace_name" {
|
|
description = "Name of the Log Analytics workspace"
|
|
value = azurerm_log_analytics_workspace.main.name
|
|
}
|