-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patharo.json
111 lines (110 loc) · 4.03 KB
/
aro.json
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"openShiftClusterName": {
"defaultValue": "ocpcluster",
"type": "String"
},
"vnetName": {
"type": "String"
},
"vnetResourceGroupName": {
"type": "String"
},
"primarySubnetName": {
"defaultValue": "PrimarySubnet",
"type": "String"
},
"workerSubnetName": {
"defaultValue": "WorkerSubnet",
"type": "String"
},
"domain": {
"type": "string",
"metadata": {
"description": "DNS domain of your cluster. Must be globally unique and resolvable in DNS."
}
},
"readOnlyResourceGroupName": {
"type": "string",
"metadata": {
"description": "This will be a resourceGroup that is ReadOnly and contains cluster resources"
}
},
"servicePrincipalclientId": {
"type": "string",
"metadata":{
"description": "Service Principal with contributor rights on subscription"
}
},
"servicePrincipalclientSecret": {
"type": "securestring",
"metadata":{
"description": "Service Principal secret"
}
}
},
"variables": {
"vnetId": "[concat(subscription().id, '/resourceGroups/', parameters('vnetResourceGroupName'), '/providers/Microsoft.Network/virtualNetworks/', parameters('vnetName'))]",
"primarySubnetId": "[concat(variables('vnetId'), '/subnets/', parameters('primarySubnetName'))]",
"workerSubnetId": "[concat(variables('vnetId'), '/subnets/', parameters('workerSubnetName'))]",
"readOnlyResourceGroupId": "[concat(subscription().id, '/resourceGroups/', parameters('readOnlyResourceGroupName'))]",
"location": "[resourceGroup().location]"
},
"resources": [
{
"type": "Microsoft.RedHatOpenShift/openShiftClusters",
"apiVersion": "2020-04-30",
"name": "[parameters('openShiftClusterName')]",
"location": "[variables('location')]",
"properties": {
"clusterProfile": {
"domain": "[parameters('domain')]",
"resourceGroupId": "[variables('readOnlyResourceGroupId')]"
},
"consoleProfile": {},
"servicePrincipalProfile": {
"clientId": "[parameters('servicePrincipalclientId')]",
"clientSecret": "[parameters('servicePrincipalclientSecret')]"
},
"networkProfile": {
"podCidr": "10.128.0.0/14",
"serviceCidr": "172.30.0.0/16"
},
"masterProfile": {
"vmSize": "Standard_D8s_v3",
"subnetId": "[variables('primarySubnetId')]"
},
"workerProfiles": [
{
"name": "worker",
"vmSize": "Standard_D4s_v3",
"diskSizeGB": 128,
"subnetId": "[variables('workerSubnetId')]",
"count": 3
}
],
"apiserverProfile": {
"visibility": "Public"
},
"ingressProfiles": [
{
"name": "default",
"visibility": "Public"
}
]
}
}
],
"outputs": {
"apiserverProfileUrl": {
"type": "string",
"value": "[reference(parameters('openShiftClusterName')).apiserverProfile.url]"
},
"apiserverProfileIp": {
"type": "string",
"value": "[reference(parameters('openShiftClusterName')).apiserverProfile.ip]"
}
}
}