github.com/openshift/installer@v1.4.17/upi/azure/01_vnet.json (about)

     1  {
     2    "$schema" : "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
     3    "contentVersion" : "1.0.0.0",
     4    "parameters" : {
     5      "baseName" : {
     6        "type" : "string",
     7        "minLength" : 1,
     8        "metadata" : {
     9          "description" : "Base name to be used in resource names (usually the cluster's Infra ID)"
    10        }
    11      }
    12    },
    13    "variables" : {
    14      "location" : "[resourceGroup().location]",
    15      "virtualNetworkName" : "[concat(parameters('baseName'), '-vnet')]",
    16      "addressPrefix" : "10.0.0.0/16",
    17      "masterSubnetName" : "[concat(parameters('baseName'), '-master-subnet')]",
    18      "masterSubnetPrefix" : "10.0.0.0/24",
    19      "nodeSubnetName" : "[concat(parameters('baseName'), '-worker-subnet')]",
    20      "nodeSubnetPrefix" : "10.0.1.0/24",
    21      "clusterNsgName" : "[concat(parameters('baseName'), '-nsg')]"
    22    },
    23    "resources" : [
    24      {
    25        "apiVersion" : "2018-12-01",
    26        "type" : "Microsoft.Network/virtualNetworks",
    27        "name" : "[variables('virtualNetworkName')]",
    28        "location" : "[variables('location')]",
    29        "dependsOn" : [
    30          "[concat('Microsoft.Network/networkSecurityGroups/', variables('clusterNsgName'))]"
    31        ],
    32        "properties" : {
    33          "addressSpace" : {
    34            "addressPrefixes" : [
    35              "[variables('addressPrefix')]"
    36            ]
    37          },
    38          "subnets" : [
    39            {
    40              "name" : "[variables('masterSubnetName')]",
    41              "properties" : {
    42                "addressPrefix" : "[variables('masterSubnetPrefix')]",
    43                "serviceEndpoints": [],
    44                "networkSecurityGroup" : {
    45                  "id" : "[resourceId('Microsoft.Network/networkSecurityGroups', variables('clusterNsgName'))]"
    46                }
    47              }
    48            },
    49            {
    50              "name" : "[variables('nodeSubnetName')]",
    51              "properties" : {
    52                "addressPrefix" : "[variables('nodeSubnetPrefix')]",
    53                "serviceEndpoints": [],
    54                "networkSecurityGroup" : {
    55                  "id" : "[resourceId('Microsoft.Network/networkSecurityGroups', variables('clusterNsgName'))]"
    56                }
    57              }
    58            }
    59          ]
    60        }
    61      },
    62      {
    63        "type" : "Microsoft.Network/networkSecurityGroups",
    64        "name" : "[variables('clusterNsgName')]",
    65        "apiVersion" : "2018-10-01",
    66        "location" : "[variables('location')]",
    67        "properties" : {
    68          "securityRules" : [
    69            {
    70              "name" : "apiserver_in",
    71              "properties" : {
    72                "protocol" : "Tcp",
    73                "sourcePortRange" : "*",
    74                "destinationPortRange" : "6443",
    75                "sourceAddressPrefix" : "*",
    76                "destinationAddressPrefix" : "*",
    77                "access" : "Allow",
    78                "priority" : 101,
    79                "direction" : "Inbound"
    80              }
    81            }
    82          ]
    83        }
    84      }
    85    ]
    86  }