-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathazurerm_subnet.tf
34 lines (28 loc) · 1.27 KB
/
azurerm_subnet.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Create subnets
resource "azurerm_subnet" "master-subnet" {
name = "master-subnet"
resource_group_name = azurerm_resource_group.openshift-cluster.name
virtual_network_name = azurerm_virtual_network.virtual-network.name
address_prefixes = ["10.0.0.0/23"]
enforce_private_link_service_network_policies = true
delegation {
name = "accountdelegation"
service_delegation {
name = "Microsoft.ContainerInstance/containerGroups"
actions = ["Microsoft.Network/virtualNetworks/subnets/join/action", "Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action"]
}
}
}
resource "azurerm_subnet" "worker-subnet" {
name = "worker-subnet"
resource_group_name = azurerm_resource_group.openshift-cluster.name
virtual_network_name = azurerm_virtual_network.virtual-network.name
address_prefixes = ["10.0.2.0/23"]
delegation {
name = "accountdelegation"
service_delegation {
name = "Microsoft.ContainerInstance/containerGroups"
actions = ["Microsoft.Network/virtualNetworks/subnets/join/action", "Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action"]
}
}
}