Last active
May 13, 2021 09:45
-
-
Save geekzter/ace65c898d233700fc5c40fe49872798 to your computer and use it in GitHub Desktop.
Network Isolated AKS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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