github.com/openshift/installer@v1.4.17/upi/azurestack/03_infra.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      "virtualNetworkID" : "[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]",
    17      "masterSubnetName" : "[concat(parameters('baseName'), '-master-subnet')]",
    18      "masterSubnetRef" : "[concat(variables('virtualNetworkID'), '/subnets/', variables('masterSubnetName'))]",
    19      "masterPublicIpAddressName" : "[concat(parameters('baseName'), '-master-pip')]",
    20      "masterPublicIpAddressID" : "[resourceId('Microsoft.Network/publicIPAddresses', variables('masterPublicIpAddressName'))]",
    21      "masterLoadBalancerName" : "[concat(parameters('baseName'))]",
    22      "masterLoadBalancerID" : "[resourceId('Microsoft.Network/loadBalancers', variables('masterLoadBalancerName'))]",
    23      "masterAvailabilitySetName" : "[concat(parameters('baseName'), '-cluster')]",
    24      "internalLoadBalancerName" : "[concat(parameters('baseName'), '-internal')]",
    25      "internalLoadBalancerID" : "[resourceId('Microsoft.Network/loadBalancers', variables('internalLoadBalancerName'))]",
    26      "skuName": "Basic"
    27    },
    28    "resources" : [
    29      {
    30        "apiVersion": "2017-03-30",
    31        "type" : "Microsoft.Compute/availabilitySets",
    32        "name" : "[variables('masterAvailabilitySetName')]",
    33        "location" : "[variables('location')]",
    34        "properties": {
    35          "platformFaultDomainCount": "2",
    36          "platformUpdateDomainCount": "5"
    37        },
    38        "sku": {
    39          "name": "Aligned"
    40        }
    41      },
    42      {
    43        "apiVersion" : "2017-10-01",
    44        "type" : "Microsoft.Network/publicIPAddresses",
    45        "name" : "[variables('masterPublicIpAddressName')]",
    46        "location" : "[variables('location')]",
    47        "sku": {
    48          "name": "[variables('skuName')]"
    49        },
    50        "properties" : {
    51          "publicIPAllocationMethod" : "Static",
    52          "dnsSettings" : {
    53            "domainNameLabel" : "[variables('masterPublicIpAddressName')]"
    54          }
    55        }
    56      },
    57      {
    58        "apiVersion" : "2017-10-01",
    59        "type" : "Microsoft.Network/loadBalancers",
    60        "name" : "[variables('masterLoadBalancerName')]",
    61        "location" : "[variables('location')]",
    62        "sku": {
    63          "name": "[variables('skuName')]"
    64        },
    65        "dependsOn" : [
    66          "[concat('Microsoft.Network/publicIPAddresses/', variables('masterPublicIpAddressName'))]"
    67        ],
    68        "properties" : {
    69          "frontendIPConfigurations" : [
    70            {
    71              "name" : "public-lb-ip",
    72              "properties" : {
    73                "publicIPAddress" : {
    74                  "id" : "[variables('masterPublicIpAddressID')]"
    75                }
    76              }
    77            }
    78          ],
    79          "backendAddressPools" : [
    80            {
    81              "name" : "[variables('masterLoadBalancerName')]"
    82            }
    83          ],
    84          "loadBalancingRules" : [
    85            {
    86              "name" : "api-public",
    87              "properties" : {
    88                "frontendIPConfiguration" : {
    89                  "id" :"[concat(variables('masterLoadBalancerID'), '/frontendIPConfigurations/public-lb-ip')]"
    90                },
    91                "backendAddressPool" : {
    92                  "id" : "[concat(variables('masterLoadBalancerID'), '/backendAddressPools/', variables('masterLoadBalancerName'))]"
    93                },
    94                "protocol" : "Tcp",
    95                "loadDistribution" : "Default",
    96                "idleTimeoutInMinutes" : 30,
    97                "frontendPort" : 6443,
    98                "backendPort" : 6443,
    99                "probe" : {
   100                  "id" : "[concat(variables('masterLoadBalancerID'), '/probes/api-public-probe')]"
   101                }
   102              }
   103            }
   104          ],
   105          "probes" : [
   106            {
   107              "name" : "api-public-probe",
   108              "properties" : {
   109                "protocol" : "Tcp",
   110                "port" : 6443,
   111                "intervalInSeconds" : 10,
   112                "numberOfProbes" : 3
   113              }
   114            }
   115          ]
   116        }
   117      },
   118      {
   119        "apiVersion" : "2017-10-01",
   120        "type" : "Microsoft.Network/loadBalancers",
   121        "name" : "[variables('internalLoadBalancerName')]",
   122        "location" : "[variables('location')]",
   123        "sku": {
   124          "name": "[variables('skuName')]"
   125        },
   126        "properties" : {
   127          "frontendIPConfigurations" : [
   128            {
   129              "name" : "internal-lb-ip",
   130              "properties" : {
   131                "privateIPAllocationMethod" : "Dynamic",
   132                "subnet" : {
   133                  "id" : "[variables('masterSubnetRef')]"
   134                },
   135                "privateIPAddressVersion" : "IPv4"
   136              }
   137            }
   138          ],
   139          "backendAddressPools" : [
   140            {
   141              "name" : "[variables('internalLoadBalancerName')]"
   142            }
   143          ],
   144          "loadBalancingRules" : [
   145            {
   146              "name" : "api-internal",
   147              "properties" : {
   148                "frontendIPConfiguration" : {
   149                  "id" : "[concat(variables('internalLoadBalancerID'), '/frontendIPConfigurations/internal-lb-ip')]"
   150                },
   151                "frontendPort" : 6443,
   152                "backendPort" : 6443,
   153                "enableFloatingIP" : false,
   154                "idleTimeoutInMinutes" : 30,
   155                "protocol" : "Tcp",
   156                "enableTcpReset" : false,
   157                "loadDistribution" : "Default",
   158                "backendAddressPool" : {
   159                  "id" : "[concat(variables('internalLoadBalancerID'), '/backendAddressPools/', variables('internalLoadBalancerName'))]"
   160                },
   161                "probe" : {
   162                  "id" : "[concat(variables('internalLoadBalancerID'), '/probes/api-internal-probe')]"
   163                }
   164              }
   165            },
   166            {
   167              "name" : "sint",
   168              "properties" : {
   169                "frontendIPConfiguration" : {
   170                  "id" : "[concat(variables('internalLoadBalancerID'), '/frontendIPConfigurations/internal-lb-ip')]"
   171                },
   172                "frontendPort" : 22623,
   173                "backendPort" : 22623,
   174                "enableFloatingIP" : false,
   175                "idleTimeoutInMinutes" : 30,
   176                "protocol" : "Tcp",
   177                "enableTcpReset" : false,
   178                "loadDistribution" : "Default",
   179                "backendAddressPool" : {
   180                  "id" : "[concat(variables('internalLoadBalancerID'), '/backendAddressPools/', variables('internalLoadBalancerName'))]"
   181                },
   182                "probe" : {
   183                  "id" : "[concat(variables('internalLoadBalancerID'), '/probes/sint-probe')]"
   184                }
   185              }
   186            }
   187          ],
   188          "probes" : [
   189            {
   190              "name" : "api-internal-probe",
   191              "properties" : {
   192                "protocol" : "Tcp",
   193                "port" : 6443,
   194                "intervalInSeconds" : 10,
   195                "numberOfProbes" : 3
   196              }
   197            },
   198            {
   199              "name" : "sint-probe",
   200              "properties" : {
   201                "protocol" : "Tcp",
   202                "port" : 22623,
   203                "intervalInSeconds" : 10,
   204                "numberOfProbes" : 3
   205              }
   206            }
   207          ]
   208        }
   209      }
   210    ]
   211  }