Skip to content

Instantly share code, notes, and snippets.

@geekzter
Last active May 13, 2021 09:45
Show Gist options
  • Save geekzter/ace65c898d233700fc5c40fe49872798 to your computer and use it in GitHub Desktop.
Save geekzter/ace65c898d233700fc5c40fe49872798 to your computer and use it in GitHub Desktop.
Network Isolated AKS
resource azurerm_kubernetes_cluster aks {
# ...
addon_profile {
# ...
# 3. Ingress via Application Gateway
ingress_application_gateway {
enabled = true
subnet_id = var.application_gateway_subnet_id
}
}
network_profile {
# ...
# 4a. Egress via Azure Firewall
outbound_type = "userDefinedRouting"
}
# 1. Private Cluster
private_cluster_enabled = true
default_node_pool {
# ...
# 3. Ingress via Application Gateway
# 4. Egress via Azure Firewall
enable_node_public_ip = false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment