Vectorised utility function for specifying Kubernetes agent pools
Vectorised utility function for specifying Kubernetes agent pools
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".
Returns
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.
aks_pools is deprecated; please use agent_pool going forward.
Examples
# 1 pool of 5 Linux VMsaks_pools("pool1",5)# 1 pool of 3 Windows Server VMsaks_pools("pool1",3, os="Windows")# 2 pools with different VM sizes per poolaks_pools(c("pool1","pool2"), count=c(3,3), size=c("Standard_DS2_v2","Standard_DS3_v2"))