Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions deployment/terraform/examples/azure-kubernetes/aks-cluster/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
module "aks" {
# Using the Azure Verified Module AKS Dev/Test module
# This is not recommended by Azure to be used for production deployments
source = "Azure/avm-ptn-aks-dev/azurerm"
version = "0.2.0"

# As of 26th 11 2025, the official module has a terminal bug on https://github.com/Azure/terraform-azurerm-avm-ptn-aks-dev/issues/55
# This error is fixed in this PR, weitch back to the official module path when it's merged in
# https://github.com/Azure/terraform-azurerm-avm-ptn-aks-dev/pull/42
# For now use the fork for that PR:
source = "github.com/pauldotyu/terraform-azurerm-avm-ptn-aks-dev"

# source = "Azure/avm-ptn-aks-dev/azurerm"
# version = "0.2.0"
name = module.naming.kubernetes_cluster.name_unique
resource_group_name = azurerm_resource_group.this.name
location = azurerm_resource_group.this.location
Expand Down Expand Up @@ -49,4 +56,4 @@ module "aks" {
# address_prefixes = ["10.31.129.0/24"]
# }
# }
# }
# }
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ resource "azurerm_resource_group" "this" {

resource "local_file" "kubeconfig_file" {
content = module.aks.resource.kube_config_raw
filename = "${local.kubeconfig_file}.yaml"
filename = "${local.kubeconfig_file}"
file_permission = "0600"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.