Class AgentPoolData
java.lang.Object
com.azure.resourcemanager.containerservice.models.AgentPoolData
- All Implemented Interfaces:
AgentPool,HasName,HasInnerModel<AgentPoolInner>
The client-side data of an agent pool.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates an instance of agent pool data.protectedAgentPoolData(AgentPoolInner innerModel) Creates an instance of agent pool data. -
Method Summary
Modifier and TypeMethodDescriptionintcount()booleanintintintmode()name()intnodeSize()intosType()tags()type()vmSize()withAgentPoolMode(AgentPoolMode agentPoolMode) Specifies the agent pool mode for the agents.withAgentPoolType(AgentPoolType agentPoolType) Set agent pool type to every virtual machine in the agent pool.withAgentPoolTypeName(String agentPoolTypeName) Set agent pool type by type name.withAgentPoolVirtualMachineCount(int count) Specifies the number of agents (Virtual Machines) to host docker containers.withAutoScaling(int minimumNodeSize, int maximumNodeSize) Enables the auto-scaling with maximum/minimum number of nodes.withAvailabilityZones(Integer... zones) Specifies the availability zones.withKubeletDiskType(KubeletDiskType kubeletDiskType) The disk type for the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.withMaxPodsCount(int podsCount) Specifies the maximum number of pods that can run on a node.withNodeLabels(Map<String, String> nodeLabels) Specifies the node labels for all nodes.withNodeTaints(List<String> nodeTaints) Specifies the node labels.withOSDiskSizeInGB(int osDiskSizeInGB) Specifies OS disk size in GB to be used for each virtual machine in the agent pool.withOSDiskType(OSDiskType osDiskType) The OS disk type to be used for machines in the agent pool.withOSType(OSType osType) Specifies OS type to be used for each virtual machine in the agent pool.Specify that virtual machines should be spot priority VMs.Specify that virtual machines should be spot priority VMs.Adds a tag to the agents.Specifies tags for the agents.withVirtualMachineMaximumPrice(Double maxPriceInUsDollars) Sets the maximum price for virtual machine in agent pool.withVirtualMachinePriority(ScaleSetPriority priority) Specifies the priority of the virtual machines.Specifies the size of the virtual machines to be used as agents.withVirtualNetwork(String virtualNetworkId, String subnetName) Specifies the virtual network to be used for the agents.
-
Constructor Details
-
AgentPoolData
public AgentPoolData()Creates an instance of agent pool data. -
AgentPoolData
Creates an instance of agent pool data.- Parameters:
innerModel- the inner model of agent pool.
-
-
Method Details
-
name
-
provisioningState
- Specified by:
provisioningStatein interfaceAgentPool- Returns:
- the provisioning state of the agent pool
-
count
public int count() -
vmSize
-
osDiskSizeInGB
public int osDiskSizeInGB()- Specified by:
osDiskSizeInGBin interfaceAgentPool- Returns:
- OS disk size in GB set for each virtual machine in the agent pool
-
osType
-
type
-
mode
-
subnetName
- Specified by:
subnetNamein interfaceAgentPool- Returns:
- the name of the subnet used by each virtual machine in the agent pool
-
networkId
-
availabilityZones
- Specified by:
availabilityZonesin interfaceAgentPool- Returns:
- the list of availability zones
-
nodeLabels
- Specified by:
nodeLabelsin interfaceAgentPool- Returns:
- the map of node labels
-
nodeTaints
- Specified by:
nodeTaintsin interfaceAgentPool- Returns:
- the list of node taints
-
powerState
- Specified by:
powerStatein interfaceAgentPool- Returns:
- the power state, Running or Stopped
-
nodeSize
public int nodeSize() -
maximumPodsPerNode
public int maximumPodsPerNode()- Specified by:
maximumPodsPerNodein interfaceAgentPool- Returns:
- the maximum number of pods per node
-
isAutoScalingEnabled
public boolean isAutoScalingEnabled()- Specified by:
isAutoScalingEnabledin interfaceAgentPool- Returns:
- whether auto-scaling is enabled
-
minimumNodeSize
public int minimumNodeSize()- Specified by:
minimumNodeSizein interfaceAgentPool- Returns:
- the minimum number of nodes for auto-scaling
-
maximumNodeSize
public int maximumNodeSize()- Specified by:
maximumNodeSizein interfaceAgentPool- Returns:
- the maximum number of nodes for auto-scaling
-
virtualMachinePriority
- Specified by:
virtualMachinePriorityin interfaceAgentPool- Returns:
- the priority of each virtual machines in the agent pool
-
virtualMachineEvictionPolicy
- Specified by:
virtualMachineEvictionPolicyin interfaceAgentPool- Returns:
- the eviction policy of each virtual machines in the agent pool
-
virtualMachineMaximumPrice
- Specified by:
virtualMachineMaximumPricein interfaceAgentPool- Returns:
- the maximum price of each spot virtual machines in the agent pool, -1 means pay-as-you-go prices
-
osDiskType
- Specified by:
osDiskTypein interfaceAgentPool- Returns:
- the OS disk type to be used for machines in the agent pool
-
kubeletDiskType
- Specified by:
kubeletDiskTypein interfaceAgentPool- Returns:
- the disk type for the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage
-
tags
-
withVirtualMachineSize
Specifies the size of the virtual machines to be used as agents.- Parameters:
vmSize- the size of each virtual machine in the agent pool- Returns:
- the AgentPoolData object itself
-
withOSType
Specifies OS type to be used for each virtual machine in the agent pool.- Parameters:
osType- OS type to be used for each virtual machine in the agent pool- Returns:
- the AgentPoolData object itself
-
withOSDiskSizeInGB
Specifies OS disk size in GB to be used for each virtual machine in the agent pool.- Parameters:
osDiskSizeInGB- OS Disk Size in GB to be used for every machine in the agent pool- Returns:
- the AgentPoolData object itself
-
withAgentPoolType
Set agent pool type to every virtual machine in the agent pool.- Parameters:
agentPoolType- the agent pool type for every machine in the agent pool- Returns:
- the AgentPoolData object itself
-
withAgentPoolTypeName
Set agent pool type by type name.- Parameters:
agentPoolTypeName- the agent pool type name in string format- Returns:
- the AgentPoolData object itself
-
withAgentPoolVirtualMachineCount
Specifies the number of agents (Virtual Machines) to host docker containers.- Parameters:
count- the number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive); the default value is 1.- Returns:
- the AgentPoolData object itself
-
withMaxPodsCount
Specifies the maximum number of pods that can run on a node.- Parameters:
podsCount- the maximum number of pods that can run on a node- Returns:
- the AgentPoolData object itself
-
withVirtualNetwork
Specifies the virtual network to be used for the agents.- Parameters:
virtualNetworkId- the ID of a virtual networksubnetName- the name of the subnet within the virtual network.; the subnet must have the service endpoints enabled for 'Microsoft.ContainerService'.- Returns:
- the AgentPoolData object itself
-
withAgentPoolMode
Specifies the agent pool mode for the agents.- Parameters:
agentPoolMode- the agent pool mode- Returns:
- the AgentPoolData object itself
-
withAutoScaling
Enables the auto-scaling with maximum/minimum number of nodes.- Parameters:
minimumNodeSize- the minimum number of nodes for auto-scaling.maximumNodeSize- the maximum number of nodes for auto-scaling.- Returns:
- the AgentPoolData object itself
-
withAvailabilityZones
Specifies the availability zones.- Parameters:
zones- the availability zones, can be 1, 2, 3.- Returns:
- the AgentPoolData object itself
-
withNodeLabels
Specifies the node labels for all nodes.- Parameters:
nodeLabels- the node labels.- Returns:
- the AgentPoolData object itself
-
withNodeTaints
Specifies the node labels.- Parameters:
nodeTaints- the node taints for new nodes.- Returns:
- the AgentPoolData object itself
-
withVirtualMachinePriority
Specifies the priority of the virtual machines.- Parameters:
priority- the priority- Returns:
- the AgentPoolData object itself
-
withSpotPriorityVirtualMachine
Specify that virtual machines should be spot priority VMs.- Returns:
- the AgentPoolData object itself
-
withSpotPriorityVirtualMachine
Specify that virtual machines should be spot priority VMs.- Parameters:
policy- eviction policy for the virtual machines.- Returns:
- the AgentPoolData object itself
-
withVirtualMachineMaximumPrice
Sets the maximum price for virtual machine in agent pool. This price is in US Dollars. Default is -1 if not specified, as up to pay-as-you-go prices.- Parameters:
maxPriceInUsDollars- the maximum price in US Dollars- Returns:
- the AgentPoolData object itself
-
withOSDiskType
The OS disk type to be used for machines in the agent pool. The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'.- Parameters:
osDiskType- the OS disk type to be used for machines in the agent pool- Returns:
- the AgentPoolData object itself
-
withKubeletDiskType
The disk type for the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.- Parameters:
kubeletDiskType- the disk type for the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.- Returns:
- the AgentPoolData object itself
-
withTags
Specifies tags for the agents.- Parameters:
tags- the tags to associate- Returns:
- the AgentPoolData object itself
-
withTag
Adds a tag to the agents.- Parameters:
key- the key for the tagvalue- the value for the tag- Returns:
- the AgentPoolData object itself
-
innerModel
- Specified by:
innerModelin interfaceHasInnerModel<AgentPoolInner>
-