arm/acs.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "dnsNamePrefix": { "type": "string", "metadata": { "description": "Sets the Domain name prefix for the cluster. The concatenation of the domain name and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address." } }, "vnetSubnetID": { "type": "string", "metadata": { "description": "Sets the vnet/subnet" } }, "agentCount": { "type": "int", "defaultValue": 1, "metadata": { "description": "The number of agents for the cluster. This value can be from 1 to 100 (note, for Kubernetes clusters you will also get 1 or 2 public agents in addition to these seleted masters)" }, "minValue": 1, "maxValue": 100 }, "masterVMSize": { "type": "string", "defaultValue": "Standard_D2_v2", "metadata": { "description": "The size of the Virtual Machine." } }, "agentVMSize": { "type": "string", "defaultValue": "Standard_D2_v2", "metadata": { "description": "The size of the Virtual Machine." } }, "adminUsername": { "type": "string", "metadata": { "description": "User name for the Linux Virtual Machines." } }, "orchestratorType": { "type": "string", "defaultValue": "Kubernetes", "allowedValues": [ "Kubernetes", "DCOS", "Swarm" ], "metadata": { "description": "The type of orchestrator used to manage the applications on the cluster." } }, "masterCount": { "type": "int", "defaultValue": 1, "allowedValues": [ 1 ], "metadata": { "description": "The number of Kubernetes masters for the cluster." } }, "sshRSAPublicKey": { "type": "string", "metadata": { "description": "Configure all linux machines with the SSH RSA public key string. Your key should include three parts, for example 'ssh-rsa AAAAB...snip...UcyupgH azureuser@linuxvm'" } }, "servicePrincipalClientId": { "metadata": { "description": "Client ID (used by cloudprovider)" }, "type": "string", "defaultValue": "n/a" }, "servicePrincipalClientSecret": { "metadata": { "description": "The Service Principal Client Secret." }, "type": "string", "defaultValue": "n/a" }, "location": { "type": "string", "defaultValue": "[resourceGroup().location]", "metadata": { "description": "Location for all resources." } } }, "variables": { "agentsEndpointDNSNamePrefix": "[concat(parameters('dnsNamePrefix'),'agents')]", "mastersEndpointDNSNamePrefix": "[concat(parameters('dnsNamePrefix'),'mgmt')]", "useServicePrincipalDictionary": { "DCOS": 0, "Swarm": 0, "Kubernetes": 1 }, "useServicePrincipal": "[variables('useServicePrincipalDictionary')[parameters('orchestratorType')]]", "servicePrincipalFields": [ null, { "ClientId": "[parameters('servicePrincipalClientId')]", "Secret": "[parameters('servicePrincipalClientSecret')]" } ] }, "resources": [ { "apiVersion": "2017-07-01", "type": "Microsoft.ContainerService/containerServices", "location": "[parameters('location')]", "name": "[concat('containerservice-',resourceGroup().name)]", "properties": { "orchestratorProfile": { "orchestratorType": "[parameters('orchestratorType')]" }, "masterProfile": { "count": "[parameters('masterCount')]", "dnsPrefix": "[variables('mastersEndpointDNSNamePrefix')]", "vmSize": "[parameters('masterVMSize')]", "vnetSubnetID": "[parameters('vnetSubnetID')]" }, "agentPoolProfiles": [ { "name": "agentpools", "count": "[parameters('agentCount')]", "vmSize": "[parameters('agentVMSize')]", "dnsPrefix": "[variables('agentsEndpointDNSNamePrefix')]", "vnetSubnetID": "[parameters('vnetSubnetID')]" } ], "linuxProfile": { "adminUsername": "[parameters('adminUsername')]", "ssh": { "publicKeys": [ { "keyData": "[parameters('sshRSAPublicKey')]" } ] } }, "servicePrincipalProfile": "[variables('servicePrincipalFields')[variables('useServicePrincipal')]]" } } ], "outputs": { "masterFQDN": { "type": "string", "value": "[reference(concat('Microsoft.ContainerService/containerServices/', 'containerservice-', resourceGroup().name)).masterProfile.fqdn]" }, "sshMaster0": { "type": "string", "value": "[concat('ssh ', parameters('adminUsername'), '@', reference(concat('Microsoft.ContainerService/containerServices/', 'containerservice-', resourceGroup().name)).masterProfile.fqdn, ' -A -p 22')]" }, "agentFQDN": { "type": "string", "value": "[reference(concat('Microsoft.ContainerService/containerServices/', 'containerservice-', resourceGroup().name)).agentPoolProfiles[0].fqdn]" } } } |