CentOS/UbuntuServer Auto Dynamic Disks & Docker 1.12(cs)

Dwai Banerjee 提供
上次更新时间: 2016/10/30

This is a common template for creating single instance CentOS 7.2/7.1/6.5 or Ubuntu Server 16.04.0-LTS with configurable number of data disks (configurable sizes). Maximum 16 disks can be mentioned in the portal parameters and maximum size of each disk should be less than 1023 GB. The MDADM RAID0 Array is automounted and survives restarts. Latest Docker 1.12(cs3) (Swarm), docker-compose 1.9.0 & docker-machine 0.8.2 is available for usage from user azure-cli is auto running as a docker container. This single instance template is an offshoot of the HPC/GPU Clusters Template @ https://aka.ms/azurebigcompute

此 Azure Resource Manager (ARM) 模板由社区的某个成员(而不是由 Microsoft)创建。每个 ARM 模板都根据其所有者(不是 Microsoft)的许可协议向你授予许可。Microsoft 不对由社区成员提供并授予许可的 ARM 模板负责,并且不针对安全性、兼容性和性能进行筛选。社区 ARM 模板不由任何 Microsoft 支持计划或服务提供支持,按“原样”提供,没有任何种类的担保。

参数

参数名 说明
dnsLabelPrefix Unique public dns prefix where the node will be exposed
adminUserName User name for the Virtual Machine. Pick a valid username otherwise there will be a BadRequest error.
imagePublisher openlogic/Canonical are the respective CentOS/Ubuntu Distributor in Azure Market Place
imageOffer New CentOS/UbuntuServer Image Offer
imageSku P.S: OpenLogic CentOS version to use **docker usage Only for 7.1/7.2 kernels 3.10 and above **
sshPublicKey This field must be a valid SSH public key. ssh with this RSA public key
mountFolder The Folder system to be auto-mounted.
nodeSize Size of the node.
storageType Storage Account Type : Standard-LRS, Standard-GRS, Standard-RAGRS, Standard-ZRS
dockerVer The docker version **Only for 7.1/7.2 kernels 3.10 and above **
dockerComposeVer The Docker Compose Version **Only for 7.1/7.2 kernels 3.10 and above **
dockerMachineVer The docker-machine version **Only for 7.1/7.2 kernels 3.10 and above **
dataDiskSize The size in GB of each data disk that is attached to the VM. A MDADM RAID0 is created with all data disks auto-mounted, that is dataDiskSize * dataDiskCount in size n the Storage .
masterVMName The Name of the VM.
numDataDisks This parameter allows the user to select the number of disks wanted

使用模板

PowerShell
New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-vm-linux-dynamic-data-disks/azuredeploy.json
安装和配置 Azure PowerShell
命令行
azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/201-vm-linux-dynamic-data-disks/azuredeploy.json
安装和配置 Azure 跨平台命令行界面