Comments (2)
@mosabami I tracked this down to be a timing issue. The default route is added to the route table correctly, however, the creation of AKS starts before the route created is completed. I hacked the caf/azurerm
module to test out this theory by adding module.routes
to the depends_on
clause of the aks_clusters.tf
module.
module "aks_clusters" {
source = "./modules/compute/aks"
depends_on = [module.networking, module.routes]
for_each = local.compute.aks_clusters
global_settings = local.global_settings
client_config = local.client_config
diagnostics = local.combined_diagnostics
diagnostic_profiles = try(each.value.diagnostic_profiles, {})
base_tags = try(local.global_settings.inherit_tags, false) ? local.resource_groups[each.value.resource_group_key].tags : {}
settings = each.value
subnets = lookup(each.value, "lz_key", null) == null ? local.combined_objects_networking[local.client_config.landingzone_key][each.value.vnet_key].subnets : local.combined_objects_networking[each.value.lz_key][each.value.vnet_key].subnets
resource_group = local.resource_groups[each.value.resource_group_key]
admin_group_object_ids = try(each.value.admin_groups.azuread_group_keys, null) == null ? null : try(each.value.admin_groups.ids, [
for group_key in try(each.value.admin_groups.azuread_groups.keys, {}) : local.combined_objects_azuread_groups[local.client_config.landingzone_key][group_key].id
])
}
Do you think I should raise this issue in the terraform.azurerm.caf
repo?
Cheers!
from caf-terraform-landingzones-accelerator.
I am also receiving this same error:
creating Managed Kubernetes Cluster "dxnb-aks-akscluster-re1-001" (Resource Group "dxnb-rg-aks-re1"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="RouteTableMissingDefaultRouteError" Message="Default route 0.0.0.0/0 missing from route table /subscriptions/39494f26-a647-455c-8339-5cc9941def29/resourceGroups/dxnb-rg-aks_spoke_re1/providers/Microsoft.Network/routeTables/dxnb-route-default_to_firewall_re1."
from caf-terraform-landingzones-accelerator.
Related Issues (20)
- Broken link in readme file
- When tried to open repo in container, it failed with exit code 1: postCreateCommand failed. HOT 1
- Unable to deploy AKS standalone architecture using these terraform template.
- Configuration README.md has a broken link
- This repo is missing important files HOT 1
- LaunchPad Test
- devcontainer.json needs update to latest specification
- Refactor starter and simplify deployments HOT 1
- VM has reported a failure when processing extension 'install_azure_devops_agent' HOT 1
- Terraform V1 update HOT 1
- Deploying the AKS reference implementation 104-private-cluster fails
- Deployment of sandpit level4 fails HOT 5
- Unable to get Pipeline deployed and working following /configuration/sandpit/pipelines/README-pipelines.md HOT 1
- Having trouble with Level1 azure_devops deployment HOT 3
- Level2 - Error Loading State HOT 1
- Broken link in README-piplines.md HOT 1
- Add Terratest for Various Configurations
- Error: Too many command line arguments HOT 2
- Rover login command fails when running in VS Code container HOT 3
- Cluster created is not SLA HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caf-terraform-landingzones-accelerator.