Skip to content

Commit

Permalink
chore: remove appgw from byo-vpn sandbox (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmorehouse authored Apr 17, 2024
1 parent 5b69eb4 commit dc0ca99
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 33 deletions.
30 changes: 15 additions & 15 deletions .terraform.lock.hcl

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

14 changes: 8 additions & 6 deletions aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ module "aks" {
enable_auto_scaling = true
enable_host_encryption = false

green_field_application_gateway_for_ingress = {
name = "ingress"
subnet_cidr = local.appgw_cidr
}
// https://azure.github.io/application-gateway-kubernetes-ingress/setup/install-new/
//
// NOTE(jm): once we decide to enable ingress'ed applications using gateway, uncomment this and add a gateway cidr to
// parameters.
#green_field_application_gateway_for_ingress = {
#name = "ingress"
#subnet_cidr = local.appgw_cidr
#}
create_role_assignments_for_application_gateway = true
local_account_disabled = false
log_analytics_workspace_enabled = false
net_profile_dns_service_ip = local.dns_service_ip
net_profile_service_cidr = local.service_cidr
network_plugin = "azure"
network_policy = "azure"
os_disk_size_gb = 60
Expand Down
13 changes: 1 addition & 12 deletions network.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
locals {
// we create a network with two address spaces - one for node pool subnets and one for services, gateways etc.
address_spaces = ["10.0.0.0/16", "10.2.0.0/16"]
// node pool subnets
subnet_cidrs = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
subnet_names = ["a", "b", "c"]

// app and services
appgw_cidr = "10.2.0.0/24"
service_cidr = "10.2.1.0/24"
dns_service_ip = "10.2.1.10"
}
locals {}

data "azurerm_virtual_network" "network" {
name = var.network_name
Expand Down

0 comments on commit dc0ca99

Please sign in to comment.