Microsoft DC/OS Engine - Cluster Definition

October 22, 2018 ยท View on GitHub

Cluster Defintions for apiVersion "vlabs"

Here are the cluster definitions for apiVersion "vlabs":

apiVersion

NameRequiredDescription
apiVersionyesThe version of the template. For "vlabs" the value is "vlabs"

orchestratorProfile

orchestratorProfile describes the orchestrator settings.

NameRequiredDescription
orchestratorTypeyesSpecifies the orchestrator type for the cluster

Here are the valid values for the orchestrator types:

  1. DCOS - this represents the DC/OS orchestrator.
  2. linuxBootstrapProfile describes the Linux Bootstrap node settings
NameRequiredDescription
bootstrapURLnoURL for downloading a custom dcos_generate_config.windows.tar.xz
extraConfigsnoThis is an array of valid extra configs to be added to config.yaml on the Linux Bootstrap node. (bring your own Bootstrap examples)
  1. windowsBootstrapProfile describes the Windows Bootstrap node settings
NameRequiredDescription
bootstrapURLnoURL for downloading a custom dcos_generate_config.sh
extraConfigsnoThis is an array of valid extra configs to be added to config.yaml on the Windows Bootstrap node. (bring your own Bootstrap examples)

masterProfile

masterProfile describes the settings for master configuration.

NameRequiredDescription
countyesMasters have count value of 1, 3, or 5 masters
dnsPrefixyesThe dns prefix for the master FQDN. The master FQDN is used for SSH or commandline access. This must be a unique name. (bring your own VNET examples)
subjectAltNamesnoAn array of fully qualified domain names using which a user can reach API server. These domains are added as Subject Alternative Names to the generated API server certificate. NOTE: These domains will not be automatically provisioned.
firstConsecutiveStaticIPonly required when vnetSubnetId specifiedThe IP address of the first master. IP Addresses will be assigned consecutively to additional master nodes
vmsizeyesDescribes a valid Azure VM Sizes. These are restricted to machines with at least 2 cores and 100GB of ephemeral disk space
osDiskSizeGBnoDescribes the OS Disk Size in GB
vnetSubnetIdnoSpecifies the Id of an alternate VNET subnet. The subnet id must specify a valid VNET ID owned by the same subscription. (bring your own VNET examples)
extensionsnoThis is an array of extensions. This indicates that the extension be run on a single master. The name in the extensions array must exactly match the extension name in the extensionProfiles
vnetCidrnoSpecifies the VNET cidr when using a custom VNET (bring your own VNET examples)
imageReference.namenoThe name of the Linux OS image. Needs to be used in conjunction with resourceGroup, below
imageReference.resourceGroupnoResource group that contains the Linux OS image. Needs to be used in conjunction with name, above
distronoSelect Master(s) Operating System (Linux only). Currently supported value is: ubuntu
customFilesnoThe custom files to be provisioned to the master nodes. Defined as an array of json objects with each defined as "source":"absolute-local-path", "dest":"absolute-path-on-masternodes".See examples

agentPoolProfiles

A cluster can have 0 to 12 agent pool profiles. Agent Pool Profiles are used for creating agents with different capabilities such as VMSizes, VMSS or Availability Set, Public/Private access, user-defined OS Images, attached storage disks, attached managed disks, or Windows.

NameRequiredDescription
availabilityProfilenoSupported values are VirtualMachineScaleSets (default) and AvailabilitySet.
countyesDescribes the node count
scaleSetPrioritynoSupported values are Regular (default) and Low. Only applies to clusters with availabilityProfile VirtualMachineScaleSets. Enables the usage of Low-priority VMs on Scale Sets.
scaleSetEvictionPolicynoSupported values are Delete (default) and Deallocate. Only applies to clusters with availabilityProfile of VirtualMachineScaleSets and scaleSetPriority of Low.
diskSizesGBnoDescribes an array of up to 4 attached disk sizes. Valid disk size values are between 1 and 1024
dnsPrefixRequired if agents are to be exposed publically with a load balancerThe dns prefix that forms the FQDN to access the loadbalancer for this agent pool. This must be a unique name among all agent pools.
nameyesThis is the unique name for the agent pool profile. The resources of the agent pool profile are derived from this name
portsonly required if needed for exposing services publicallyDescribes an array of ports need for exposing publically. A tcp probe is configured for each port and only opens to an agent node if the agent node is listening on that port. A maximum of 150 ports may be specified.
storageProfilenoSpecifies the storage profile to use. Valid values are ManagedDisks or StorageAccount. Defaults to ManagedDisks
vmsizeyesDescribes a valid Azure VM Sizes. These are restricted to machines with at least 2 cores
osDiskSizeGBnoDescribes the OS Disk Size in GB
vnetSubnetIdnoSpecifies the Id of an alternate VNET subnet. The subnet id must specify a valid VNET ID owned by the same subscription. (bring your own VNET examples)
imageReference.namenoThe name of a a Linux OS image. Needs to be used in conjunction with resourceGroup, below
imageReference.resourceGroupnoResource group that contains the Linux OS image. Needs to be used in conjunction with name, above
osTypenoSpecifies the agent pool's Operating System. Supported values are Windows and Linux. Defaults to Linux
distronoSpecifies the agent pool's Linux distribution. Supported value is ubuntu
acceleratedNetworkingEnablednoUse Azure Accelerated Networking feature for agents (You must select a VM SKU that support Accelerated Networking)

linuxProfile

linuxProfile provides the linux configuration for each linux node in the cluster

NameRequiredDescription
adminUsernameyesDescribes the username to be used on all linux clusters
ssh.publicKeys.keyDatayesThe public SSH key used for authenticating access to all Linux nodes in the cluster. Here are instructions for generating a public/private key pair
secretsnoSpecifies an array of key vaults to pull secrets from and what secrets to pull from each
customSearchDomain.namenodescribes the search domain to be used on all linux clusters
customSearchDomain.realmUsernodescribes the realm user with permissions to update dns registries on Windows Server DNS
customSearchDomain.realmPasswordnodescribes the realm user password to update dns registries on Windows Server DNS
customNodesDNS.dnsServernodescribes the IP address of the DNS Server

secrets

secrets details which certificates to install on the masters and nodes in the cluster.

A cluster can have a list of key vaults to install certs from.

On linux boxes the certs are saved on under the directory "/var/lib/waagent/". 2 files are saved per certificate:

  1. {thumbprint}.crt : this is the full cert chain saved in PEM format
  2. {thumbprint}.prv : this is the private key saved in PEM format
NameRequiredDescription
sourceVault.idyesThe azure resource manager id of the key vault to pull secrets from
vaultCertificates.certificateUrlyesKeyvault URL to this cert including the version
format for sourceVault.id, can be obtained in cli, or found in the portal: /subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.KeyVault/vaults/{keyvaultname}

format for vaultCertificates.certificateUrl, can be obtained in cli, or found in the portal: https://{keyvaultname}.vault.azure.net:443/secrets/{secretName}/{version}