Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
346 lines (345 sloc) 19.1 KB
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"linuxAdminUsername": {
"type": "string",
"defaultValue": "azureuser",
"metadata": {
"description": "User name for the Linux Virtual Machines that are part of the Kubernetes cluster and DVM."
}
},
"sshPublicKey": {
"metadata": {
"description": "SSH public key used for auth to all Linux machines created as part of the the Kubernetes cluster and DVM."
},
"type": "string"
},
"masterProfileDnsPrefix": {
"type": "string",
"metadata": {
"description": "This must be a region-unique name e.g. k8s-12345. Try to chose it same as the resource group name as best practice."
}
},
"agentPoolProfileCount": {
"defaultValue": 3,
"metadata": {
"description": "Kubernetes Node Pool Profile Count"
},
"type": "int"
},
"agentPoolProfileVMSize": {
"defaultValue": "Standard_D2_v2",
"metadata": {
"description": "The VMSize of Kubernetes node VMs"
},
"type": "string"
},
"masterPoolProfileCount": {
"defaultValue": 3,
"metadata": {
"description": "Kubernetes Master Pool Profile Count"
},
"type": "int"
},
"masterPoolProfileVMSize": {
"defaultValue": "Standard_D2_v2",
"metadata": {
"description": "The VMSize of Kubernetes master VMs"
},
"type": "string"
},
"storageProfile": {
"defaultValue": "manageddisk",
"metadata": {
"description": "The Storage Profile"
},
"type": "string"
},
"servicePrincipalClientId": {
"metadata": {
"description": "The Service Principal application ID (used by the Kubernetes Azure cloud provider). More help here: https://github.com/Azure/aks-engine/blob/master/docs/topics/service-principals.md"
},
"type": "securestring"
},
"servicePrincipalClientSecret": {
"metadata": {
"description": "The Service Principal Client Secret."
},
"type": "securestring"
},
"identitySystem": {
"defaultValue": "AzureAD",
"allowedValues": [
"AzureAD",
"ADFS"
],
"metadata": {
"description": "The identity system of Azure Stack. The value could be AzureAD or ADFS"
},
"type": "string"
},
"kubernetesAzureCloudProviderVersion": {
"type": "string",
"defaultValue": "1.11",
"metadata": {
"description": "This is the version for the Kubernetes Azure cloud provider. We would use a custom Kubernetes build specifically for Azure Stack for each version."
}
},
"aksEngineBaseURL": {
"type": "string",
"defaultValue": "https://github.com/Azure/aks-engine/releases/download",
"metadata": {
"description": "The beginning of the URL for downloading the AKS Engine binary"
}
},
"aksEngineReleaseVersion": {
"type": "string",
"defaultValue": "v0.36.4",
"metadata": {
"description": "The version of AKS Engine to download"
}
},
"galleryRepository": {
"type": "string",
"defaultValue": "msazurestackworkloads/azurestack-gallery",
"metadata": {
"description": "Marketplace item repository"
}
},
"galleryBranch": {
"type": "string",
"defaultValue": "master",
"metadata": {
"description": "Marketplace item branch"
}
},
"clusterDefinitionFileName": {
"type": "string",
"defaultValue": "clusterDefinition.json",
"metadata": {
"description": "The name of the file containing the cluster definition"
}
},
"kubernetesImageBase": {
"type": "string",
"defaultValue": "mcr.microsoft.com/k8s/azurestack/core/",
"metadata": {
"description": "The base for Kubernetes images"
}
}
},
"variables": {
"resourceGroupName": "[resourceGroup().name]",
"dnsNameForPublicIP": "[toLower(concat('vmd-dns', parameters('masterProfileDnsPrefix')))]",
"location": "[resourceGroup().location]",
"imagePublisher": "Canonical",
"imageOffer": "UbuntuServer",
"imageSku": "16.04-LTS",
"imageVersion": "latest",
"vmSize": "Standard_D2_v2",
"OSDiskName": "osdisk",
"nicName": "[concat('vmd-vnic', uniqueString(resourceGroup().id))]",
"addressPrefix": "10.0.0.0/24",
"subnetName": "mySubnet",
"subnetPrefix": "10.0.0.0/24",
"storageAccountName": "[concat('vmdsa', uniquestring(resourceGroup().id))]",
"storageAccountType": "Standard_LRS",
"publicIPAddressName": "[concat('vmd-publicIP', uniqueString(resourceGroup().id))]",
"publicIPAddressType": "Static",
"vmStorageAccountContainerName": "vhds",
"vmName": "[concat('vmd-', uniqueString(resourceGroup().id))]",
"virtualNetworkName": "[concat('vmd-vnet-', uniqueString(resourceGroup().id))]",
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
"subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]",
"networkSecurityGroupName": "[tolower(concat('vmd-nsg',uniquestring(resourceGroup().id)))]",
"sshKeyPath": "[concat('/home/',parameters('linuxAdminUsername'),'/.ssh/authorized_keys')]",
"tenantSubscriptionId": "[subscription().subscriptionId]",
"scriptName": "script",
"singleQuote": "'",
"scriptParameters": "[concat('IDENTITY_SYSTEM=','\"',parameters('identitySystem'),'\"',' RESOURCE_GROUP_NAME=','\"',variables('resourceGroupName'),'\"',' PUBLICIP_DNS=','\"',variables('dnsNameForPublicIP'),'\"' ,' TENANT_ID=','\"',subscription().tenantId,'\"' ,' TENANT_SUBSCRIPTION_ID=','\"',variables('tenantSubscriptionId'),'\"',' ADMIN_USERNAME=','\"',parameters('linuxAdminUsername'),'\"',' MASTER_DNS_PREFIX=','\"',parameters('masterProfileDnsPrefix'),'\"' ,' AGENT_COUNT=','\"',parameters('agentPoolProfileCount'),'\"' ,' AGENT_SIZE=','\"',parameters('agentPoolProfileVMSize'),'\"' ,' MASTER_COUNT=','\"',parameters('masterPoolProfileCount'),'\"',' MASTER_SIZE=','\"',parameters('masterPoolProfileVMSize'),'\"' ,' SPN_CLIENT_ID=','\"',parameters('servicePrincipalClientId'),'\"' ,' SPN_CLIENT_SECRET=','\"',parameters('servicePrincipalClientSecret'),'\"' ,' K8S_AZURE_CLOUDPROVIDER_VERSION=','\"',parameters('kubernetesAzureCloudProviderVersion'),'\"' ,' REGION_NAME=','\"',variables('location'),'\"' ,' SSH_PUBLICKEY=','\"',parameters('sshPublicKey'),'\"' ,' STORAGE_PROFILE=','\"',parameters('storageProfile'),'\"',' AKSE_BASE_URL=','\"',parameters('aksEngineBaseURL'), '\"', ' AKSE_RELEASE_VERSION=','\"',parameters('aksEngineReleaseVersion'),'\"',' GALLERY_REPO=','\"',parameters('galleryRepository'),'\"',' GALLERY_BRANCH=','\"',parameters('galleryBranch'),'\"',' DEFINITION_TEMPLATE_NAME=','\"',parameters('clusterDefinitionFileName'),'\"',' K8S_IMAGE_BASE=','\"',parameters('kubernetesImageBase'),'\"')]"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[toLower(variables('storageAccountName'))]",
"apiVersion": "2015-06-15",
"location": "[variables('location')]",
"properties": {
"accountType": "[variables('storageAccountType')]"
}
},
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Network/networkSecurityGroups",
"name": "[variables('networkSecurityGroupName')]",
"location": "[resourceGroup().location]",
"properties": {
"securityRules": [
{
"name": "ssh",
"properties": {
"description": "Allow SSH",
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "22",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 200,
"direction": "Inbound"
}
}
]
}
},
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('publicIPAddressName')]",
"location": "[variables('location')]",
"properties": {
"publicIPAllocationMethod": "[variables('publicIPAddressType')]",
"dnsSettings": {
"domainNameLabel": "[variables('dnsNameForPublicIP')]"
}
}
},
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Network/virtualNetworks",
"name": "[variables('virtualNetworkName')]",
"location": "[variables('location')]",
"properties": {
"addressSpace": {
"addressPrefixes": [
"[variables('addressPrefix')]"
]
},
"subnets": [
{
"name": "[variables('subnetName')]",
"properties": {
"addressPrefix": "[variables('subnetPrefix')]"
}
}
]
}
},
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Network/networkInterfaces",
"name": "[variables('nicName')]",
"location": "[variables('location')]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]",
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]",
"[variables('networkSecurityGroupName')]"
],
"properties": {
"networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('networkSecurityGroupName'))]"
},
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]"
},
"subnet": {
"id": "[variables('subnetRef')]"
}
}
}
]
}
},
{
"apiVersion": "2016-03-30",
"type": "Microsoft.Compute/virtualMachines",
"name": "[variables('vmName')]",
"location": "[variables('location')]",
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
"[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
],
"properties": {
"hardwareProfile": {
"vmSize": "[variables('vmSize')]"
},
"osProfile": {
"customData": "[base64(concat('#cloud-config\n\nwrite_files:\n- path: \"/opt/azure/containers/script.sh\"\n permissions: \"0744\"\n encoding: gzip\n owner: \"root\"\n content: !!binary |\n H4sIAAAAAAAA/7xba3PbttL+zl+xh+bUSaeUbPe4c05SulUk2tVElnQkuWka52UgCpJRkwADgLaVpv/9HYAX8SbJvTj+kAnJ3WcvWCwWC+jgX+05oe05EjdgY8NwJxOvM555/eF01hkMvFn/0h1dzZz/wgHMSIhZLIFQIVEQELoCjj/GhOMFoEhChPxbtMIiAXk9db3e6M1wMOr0nOMjOIBzRIKYY1iwexowtFAAnddT26UrQjHMCUWclNjd8WD01jk+KTD7qeQN46GABY4CtgYWYY4kYVRDzNzL8aAzK2rx7X4tJA6jAEmsIbqdrjvJneGcFK0I2Z1i7XbAx1ySJfEzrkt31ul1Zh3PHfbGo/5w5nx71GCBvMEQYokWSCLAdBExQmU6AH3vctRzB86/i4zzmASJuuM+hGyBA4iFeo4F5kBoFKfsv0697mB01fMm7kV/OnMnzmmTAugT+AGLF8DxigiJeT76V+Oeclw++MXRv0dEKu4l42rU7RWWEEcLJDFIBj4LowBLbBzko3jhDt1JZ+Y6x8f7xnGFqRpBXBhJjXM59S7GF95r920+mLlyJ99tUe6S+JwJtpSHAi7GF3CL1/mgp+rljnKHP/cno+GlO5w5p0U1BZay5CtM7whnNMRUVkHGk9F5f+A6pye7ACLOliTAG+bB6KI/9DqdnnNajE/JIGArIFT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TVtNti+vsyu9z7j5BcJ6aS6mgzAqTEflkQVyu9SZwAOW1nWVBiFL4dlXWvtloYOTFnfEClHZaouqBhzvCQPSkyNMxdWQtB3DseMBSmIeHf0vqV/3XDoFBunZU03vdBiX/QRyHfhlHzCToGpWa2yYZk+xbZWo+sSjYoPO1AzXQrklQEpd6CrHekytr7ulEGjRUjolcBcd/WdKmdFTKnBAqb1e+nFH+YOQULctKJ4HhD/NV5rD9/idQ9JpISWYKqmbXb2YBUf9s2Hco66xPKGLZwiQtW4YucKrPJjSZjA/I74eMwJ9UmEgnz0dd+hv9AmFdm3S0q6XCXy9NWjJCYtjoq8BKAis3HJqq2b6et9riUL5Vi5Tk6InGaUigKv/zPNjwr2dabLCjDu32AhOZIsnxLFd5Nkt+BYBRENwgut7Ur/er+4zRWurj5YLbzoh2iFX+XyN6iHcG2cbc/+ugA3HntLfw/OrkWmvDVKf5pY36zQwi8U6+ta6ylX3M3FIbW1Q3RRq4KT63LJjyXT/RS42fUho3oJMftB6bVhrxqb1uqLjSJiJyv9dudpulje2KFOH+UEpD/q7TCmd/Xejf6er6eldVZ9SZKFTRbVVFP4mE7vhuygiLJZaKdtiS2TWZEWf/enRTb3jJs2evpHvNXx2Hn4nP+KtGUa/x8AAP//J21IJqE8AAA='))]",
"computerName": "[variables('vmName')]",
"adminUsername": "[parameters('linuxAdminUsername')]",
"linuxConfiguration": {
"disablePasswordAuthentication": "true",
"ssh": {
"publicKeys": [
{
"keyData": "[parameters('sshPublicKey')]",
"path": "[variables('sshKeyPath')]"
}
]
}
}
},
"storageProfile": {
"imageReference": {
"publisher": "[variables('imagePublisher')]",
"offer": "[variables('imageOffer')]",
"sku": "[variables('imageSku')]",
"version": "[variables('imageVersion')]"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob, variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]"
}
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"storageUri": "[reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob]"
}
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(variables('vmName'),'/LinuxCustomScriptExtension')]",
"apiVersion": "2016-03-30",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]",
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": "true",
"protectedSettings": {
"commandToExecute": "[concat(variables('scriptParameters'), ' PUBLICIP_FQDN=', '\"', reference(resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName')),'2015-06-15').dnsSettings.fqdn,'\"',' /bin/bash /opt/azure/containers/script.sh >> /var/log/azure/deploy-script-dvm.log 2>&1')]"
}
}
}
],
"outputs": {
"dvmPublicIpFqdn": {
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName')),'2015-06-15').dnsSettings.fqdn]",
"type": "string"
}
}
}
You can’t perform that action at this time.