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 TypeMethodDescriptionGets the list of availability zones.intcount()Gets the number of agents (virtual machines) to host docker containers.booleanChecks whether auto-scaling is enabled.booleanChecks whether FIPS-enabled OS is being used for agent pool's machines.Gets the disk type for the placement.intGets the maximum number of nodes for auto-scaling.intGets the maximum number of pods per node.intGets the minimum number of nodes for auto-scaling.mode()Gets agent pool mode.name()Gets the ID of the virtual network used by each virtual machine in the agent pool.Gets the map of node labels.intnodeSize()Gets the number of agents (VMs) to host docker containers.Gets the list of node taints.intGets OS disk size in GB set for each virtual machine in the agent pool.Gets the maximum price of each spot virtual machines in the agent pool.osType()Gets OS of each virtual machine in the agent pool.Gets the power state.Gets the provisioning state of the agent pool.Gets the name of the subnet used by each virtual machine in the agent pool.tags()Gets the tags of the agents.type()Gets agent pool type.Gets the eviction policy of each virtual machines in the agent pool.Gets the maximum price of each spot virtual machines in the agent pool.Gets the priority of each virtual machines in the agent pool.vmSize()Gets size of each agent virtual machine in the agent pool.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.Specify to use an FIPS-enabled OS for agent pool machines.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
Gets the provisioning state of the agent pool.- Specified by:
provisioningStatein interfaceAgentPool- Returns:
- the provisioning state of the agent pool
-
count
public int count()Gets the number of agents (virtual machines) to host docker containers. -
vmSize
Gets size of each agent virtual machine in the agent pool. -
osDiskSizeInGB
public int osDiskSizeInGB()Gets OS disk size in GB set for each virtual machine in the agent pool.- Specified by:
osDiskSizeInGBin interfaceAgentPool- Returns:
- OS disk size in GB set for each virtual machine in the agent pool
-
osType
Gets OS of each virtual machine in the agent pool. -
type
Gets agent pool type. -
mode
Gets agent pool mode. -
subnetName
Gets the name of the subnet used by each virtual machine in the agent pool.- Specified by:
subnetNamein interfaceAgentPool- Returns:
- the name of the subnet used by each virtual machine in the agent pool
-
networkId
Gets the ID of the virtual network used by each virtual machine in the agent pool. -
availabilityZones
Gets the list of availability zones.- Specified by:
availabilityZonesin interfaceAgentPool- Returns:
- the list of availability zones
-
nodeLabels
Gets the map of node labels.- Specified by:
nodeLabelsin interfaceAgentPool- Returns:
- the map of node labels
-
nodeTaints
Gets the list of node taints.- Specified by:
nodeTaintsin interfaceAgentPool- Returns:
- the list of node taints
-
powerState
Gets the power state.- Specified by:
powerStatein interfaceAgentPool- Returns:
- the power state, Running or Stopped
-
nodeSize
public int nodeSize()Gets the number of agents (VMs) to host docker containers. -
maximumPodsPerNode
public int maximumPodsPerNode()Gets the maximum number of pods per node.- Specified by:
maximumPodsPerNodein interfaceAgentPool- Returns:
- the maximum number of pods per node
-
isAutoScalingEnabled
public boolean isAutoScalingEnabled()Checks whether auto-scaling is enabled.- Specified by:
isAutoScalingEnabledin interfaceAgentPool- Returns:
- whether auto-scaling is enabled
-
minimumNodeSize
public int minimumNodeSize()Gets the minimum number of nodes for auto-scaling.- Specified by:
minimumNodeSizein interfaceAgentPool- Returns:
- the minimum number of nodes for auto-scaling
-
maximumNodeSize
public int maximumNodeSize()Gets the maximum number of nodes for auto-scaling.- Specified by:
maximumNodeSizein interfaceAgentPool- Returns:
- the maximum number of nodes for auto-scaling
-
virtualMachinePriority
Gets the priority of each virtual machines in the agent pool.- Specified by:
virtualMachinePriorityin interfaceAgentPool- Returns:
- the priority of each virtual machines in the agent pool
-
virtualMachineEvictionPolicy
Gets the eviction policy of each virtual machines in the agent pool.- Specified by:
virtualMachineEvictionPolicyin interfaceAgentPool- Returns:
- the eviction policy of each virtual machines in the agent pool
-
virtualMachineMaximumPrice
Gets the maximum price of each spot virtual machines in the agent pool.- 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
Gets the maximum price of each spot virtual machines in the agent pool.- Specified by:
osDiskTypein interfaceAgentPool- Returns:
- the OS disk type to be used for machines in the agent pool
-
kubeletDiskType
Gets the disk type for the placement.- Specified by:
kubeletDiskTypein interfaceAgentPool- Returns:
- the disk type for the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage
-
isFipsEnabled
public boolean isFipsEnabled()Checks whether FIPS-enabled OS is being used for agent pool's machines.- Specified by:
isFipsEnabledin interfaceAgentPool- Returns:
- whether FIPS-enabled OS is being used for agent pool's machines
- See Also:
-
tags
Gets the tags of the agents. -
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
-
withFipsEnabled
Specify to use an FIPS-enabled OS for agent pool machines.- Returns:
- the AgentPoolData object itself
- See Also:
-
innerModel
- Specified by:
innerModelin interfaceHasInnerModel<AgentPoolInner>
-