Learn R Programming

AzureContainers (version 1.0.2)

aks_pools: Utility function for specifying Kubernetes agent pools

Description

Utility function for specifying Kubernetes agent pools

Usage

aks_pools(name, count, size = "Standard_DS2_v2", os = "Linux")

Arguments

name

The name(s) of the pool(s).

count

The number of nodes per pool.

size

The VM type (size) to use for the pool. To see a list of available VM sizes, use the list_vm_sizes method for the resource group or subscription classes.

os

The operating system to use for the pool. Can be "Linux" or "Windows".

Value

A list of lists, suitable for passing to the create_aks constructor method.

Details

This is a convenience function to simplify the task of specifying the agent pool for a Kubernetes cluster. You can specify multiple pools by providing vectors as input arguments; any scalar inputs will be replicated to match.

See Also

list_vm_sizes

Examples

Run this code
# NOT RUN {
# 1 pool of 5 Linux VMs
aks_pools("pool1", 5)

# 1 pool of 3 Windows Server VMs
aks_pools("pool1", 3, os="Windows")

# 2 pools with different VM sizes per pool
aks_pools(c("pool1", "pool2"), count=c(3, 3), size=c("Standard_DS2_v2", "Standard_DS3_v2"))

# }

Run the code above in your browser using DataLab