mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
259 lines
8.9 KiB
JSON
259 lines
8.9 KiB
JSON
{
|
|
"$schema" : "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
|
"contentVersion" : "1.0.0.0",
|
|
"parameters" : {
|
|
"baseName" : {
|
|
"type" : "string",
|
|
"minLength" : 1,
|
|
"metadata" : {
|
|
"description" : "Base name to be used in resource names (usually the cluster's Infra ID)"
|
|
}
|
|
}
|
|
},
|
|
"variables" : {
|
|
"location" : "[resourceGroup().location]",
|
|
"virtualNetworkName" : "[concat(parameters('baseName'), '-vnet')]",
|
|
"virtualNetworkID" : "[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]",
|
|
"masterSubnetName" : "[concat(parameters('baseName'), '-master-subnet')]",
|
|
"masterSubnetRef" : "[concat(variables('virtualNetworkID'), '/subnets/', variables('masterSubnetName'))]",
|
|
"masterPublicIpAddressName" : "[concat(parameters('baseName'), '-master-pip')]",
|
|
"masterPublicIpAddressID" : "[resourceId('Microsoft.Network/publicIPAddresses', variables('masterPublicIpAddressName'))]",
|
|
"masterLoadBalancerName" : "[concat(parameters('baseName'))]",
|
|
"masterLoadBalancerID" : "[resourceId('Microsoft.Network/loadBalancers', variables('masterLoadBalancerName'))]",
|
|
"masterAvailabilitySetName" : "[concat(parameters('baseName'), '-cluster')]",
|
|
"outboundPulicIpAddressName" : "[concat(parameters('baseName'), '-outbound-pip')]",
|
|
"outboundPulicIpAddressID" : "[resourceId('Microsoft.Network/publicIPAddresses', variables('outboundPulicIpAddressName'))]",
|
|
"outboundBackendPoolName" : "[concat(parameters('baseName'), '-outbound')]",
|
|
"internalLoadBalancerName" : "[concat(parameters('baseName'), '-internal')]",
|
|
"internalLoadBalancerID" : "[resourceId('Microsoft.Network/loadBalancers', variables('internalLoadBalancerName'))]",
|
|
"skuName": "Standard"
|
|
},
|
|
"resources" : [
|
|
{
|
|
"apiVersion": "2017-03-30",
|
|
"type" : "Microsoft.Compute/availabilitySets",
|
|
"name" : "[variables('masterAvailabilitySetName')]",
|
|
"location" : "[variables('location')]",
|
|
"properties": {
|
|
"platformFaultDomainCount": "2",
|
|
"platformUpdateDomainCount": "5"
|
|
},
|
|
"sku": {
|
|
"name": "Aligned"
|
|
}
|
|
},
|
|
{
|
|
"apiVersion" : "2017-10-01",
|
|
"type" : "Microsoft.Network/publicIPAddresses",
|
|
"name" : "[variables('masterPublicIpAddressName')]",
|
|
"location" : "[variables('location')]",
|
|
"sku": {
|
|
"name": "[variables('skuName')]"
|
|
},
|
|
"properties" : {
|
|
"publicIPAllocationMethod" : "Static",
|
|
"dnsSettings" : {
|
|
"domainNameLabel" : "[variables('masterPublicIpAddressName')]"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"apiVersion" : "2017-10-01",
|
|
"type" : "Microsoft.Network/publicIPAddresses",
|
|
"name" : "[variables('outboundPulicIpAddressName')]",
|
|
"location" : "[variables('location')]",
|
|
"sku": {
|
|
"name": "[variables('skuName')]"
|
|
},
|
|
"properties" : {
|
|
"publicIPAllocationMethod" : "Static",
|
|
"dnsSettings" : {
|
|
"domainNameLabel" : "[variables('outboundPulicIpAddressName')]"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"apiVersion" : "2018-06-01",
|
|
"type" : "Microsoft.Network/loadBalancers",
|
|
"name" : "[variables('masterLoadBalancerName')]",
|
|
"location" : "[variables('location')]",
|
|
"sku": {
|
|
"name": "[variables('skuName')]"
|
|
},
|
|
"dependsOn" : [
|
|
"[concat('Microsoft.Network/publicIPAddresses/', variables('masterPublicIpAddressName'))]"
|
|
],
|
|
"properties" : {
|
|
"frontendIPConfigurations" : [
|
|
{
|
|
"name" : "public-lb-ip",
|
|
"properties" : {
|
|
"publicIPAddress" : {
|
|
"id" : "[variables('masterPublicIpAddressID')]"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name" : "outbound-frontendEnd",
|
|
"properties" : {
|
|
"publicIPAddress" : {
|
|
"id" : "[variables('outboundPulicIpAddressID')]"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"backendAddressPools" : [
|
|
{
|
|
"name" : "[variables('masterLoadBalancerName')]"
|
|
},
|
|
{
|
|
"name" : "[variables('outboundBackendPoolName')]"
|
|
}
|
|
],
|
|
"loadBalancingRules" : [
|
|
{
|
|
"name" : "api-public",
|
|
"properties" : {
|
|
"frontendIPConfiguration" : {
|
|
"id" :"[concat(variables('masterLoadBalancerID'), '/frontendIPConfigurations/public-lb-ip')]"
|
|
},
|
|
"backendAddressPool" : {
|
|
"id" : "[concat(variables('masterLoadBalancerID'), '/backendAddressPools/', variables('masterLoadBalancerName'))]"
|
|
},
|
|
"protocol" : "Tcp",
|
|
"loadDistribution" : "Default",
|
|
"idleTimeoutInMinutes" : 30,
|
|
"frontendPort" : 6443,
|
|
"backendPort" : 6443,
|
|
"probe" : {
|
|
"id" : "[concat(variables('masterLoadBalancerID'), '/probes/api-public-probe')]"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outboundRules": [
|
|
{
|
|
"name": "OutboundNATAllProtocols",
|
|
"properties": {
|
|
"backendAddressPool": {
|
|
"id": "[concat(variables('masterLoadBalancerID'), '/backendAddressPools/', variables('outboundBackendPoolName'))]"
|
|
},
|
|
"enableTcpReset": false,
|
|
"frontendIPConfigurations": [
|
|
{
|
|
"id": "[concat(variables('masterLoadBalancerID'), '/frontendIPConfigurations/outbound-frontendEnd')]"
|
|
}
|
|
],
|
|
"idleTimeoutInMinutes": 4,
|
|
"protocol": "All"
|
|
}
|
|
}
|
|
],
|
|
"probes" : [
|
|
{
|
|
"name" : "api-public-probe",
|
|
"properties" : {
|
|
"protocol" : "Tcp",
|
|
"port" : 6443,
|
|
"intervalInSeconds" : 10,
|
|
"numberOfProbes" : 3
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"apiVersion" : "2017-10-01",
|
|
"type" : "Microsoft.Network/loadBalancers",
|
|
"name" : "[variables('internalLoadBalancerName')]",
|
|
"location" : "[variables('location')]",
|
|
"sku": {
|
|
"name": "[variables('skuName')]"
|
|
},
|
|
"properties" : {
|
|
"frontendIPConfigurations" : [
|
|
{
|
|
"name" : "internal-lb-ip",
|
|
"properties" : {
|
|
"privateIPAllocationMethod" : "Dynamic",
|
|
"subnet" : {
|
|
"id" : "[variables('masterSubnetRef')]"
|
|
},
|
|
"privateIPAddressVersion" : "IPv4"
|
|
}
|
|
}
|
|
],
|
|
"backendAddressPools" : [
|
|
{
|
|
"name" : "[variables('internalLoadBalancerName')]"
|
|
}
|
|
],
|
|
"loadBalancingRules" : [
|
|
{
|
|
"name" : "api-internal",
|
|
"properties" : {
|
|
"frontendIPConfiguration" : {
|
|
"id" : "[concat(variables('internalLoadBalancerID'), '/frontendIPConfigurations/internal-lb-ip')]"
|
|
},
|
|
"frontendPort" : 6443,
|
|
"backendPort" : 6443,
|
|
"enableFloatingIP" : false,
|
|
"idleTimeoutInMinutes" : 30,
|
|
"protocol" : "Tcp",
|
|
"enableTcpReset" : false,
|
|
"loadDistribution" : "Default",
|
|
"backendAddressPool" : {
|
|
"id" : "[concat(variables('internalLoadBalancerID'), '/backendAddressPools/', variables('internalLoadBalancerName'))]"
|
|
},
|
|
"probe" : {
|
|
"id" : "[concat(variables('internalLoadBalancerID'), '/probes/api-internal-probe')]"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name" : "sint",
|
|
"properties" : {
|
|
"frontendIPConfiguration" : {
|
|
"id" : "[concat(variables('internalLoadBalancerID'), '/frontendIPConfigurations/internal-lb-ip')]"
|
|
},
|
|
"frontendPort" : 22623,
|
|
"backendPort" : 22623,
|
|
"enableFloatingIP" : false,
|
|
"idleTimeoutInMinutes" : 30,
|
|
"protocol" : "Tcp",
|
|
"enableTcpReset" : false,
|
|
"loadDistribution" : "Default",
|
|
"backendAddressPool" : {
|
|
"id" : "[concat(variables('internalLoadBalancerID'), '/backendAddressPools/', variables('internalLoadBalancerName'))]"
|
|
},
|
|
"probe" : {
|
|
"id" : "[concat(variables('internalLoadBalancerID'), '/probes/sint-probe')]"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"probes" : [
|
|
{
|
|
"name" : "api-internal-probe",
|
|
"properties" : {
|
|
"protocol" : "Tcp",
|
|
"port" : 6443,
|
|
"intervalInSeconds" : 10,
|
|
"numberOfProbes" : 3
|
|
}
|
|
},
|
|
{
|
|
"name" : "sint-probe",
|
|
"properties" : {
|
|
"protocol" : "Tcp",
|
|
"port" : 22623,
|
|
"intervalInSeconds" : 10,
|
|
"numberOfProbes" : 3
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|