Skip to content

Commit

Permalink
add a few network iam bindings that are still necessary for aks
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Jan 6, 2024
1 parent af8343d commit 7576c1b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions terraform/clouds/azure/iam.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
resource "azurerm_role_assignment" "aks-network-identity-kubelet" {
scope = azurerm_virtual_network.network.id
role_definition_name = "Network Contributor"
principal_id = module.aks[0].kubelet_identity

depends_on = [module.aks, azurerm_virtual_network.network]
}

resource "azurerm_role_assignment" "aks-network-identity-ssi" {
scope = azurerm_virtual_network.network.id
role_definition_name = "Network Contributor"
principal_id = module.aks[0].cluster_identity

depends_on = [module.aks, azurerm_virtual_network.network]
}

0 comments on commit 7576c1b

Please sign in to comment.