aks_pools {AzureContainers} | R Documentation |
Vectorised utility function for specifying Kubernetes agent pools
Description
Vectorised 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". |
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.
Value
A list of lists, suitable for passing to the create_aks
constructor method.
See Also
Examples
# 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"))
[Package AzureContainers version 1.3.2 Index]