AgentPoolInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. containerservice. fluent. models. AgentPoolInner
- com.
- com.
public final class AgentPoolInner
extends SubResource
Agent Pool.
Constructor Summary
Constructor | Description |
---|---|
AgentPoolInner() |
Creates an instance of Agent |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
availabilityZones()
Get the availability |
String |
capacityReservationGroupId()
Get the capacity |
Integer |
count()
Get the count property: Number of agents (VMs) to host docker containers. |
Creation |
creationData()
Get the creation |
String |
currentOrchestratorVersion()
Get the current |
Boolean |
enableAutoScaling()
Get the enable |
Boolean |
enableEncryptionAtHost()
Get the enable |
Boolean |
enableFips()
Get the enable |
Boolean |
enableNodePublicIp()
Get the enable |
Boolean |
enableUltraSsd()
Get the enable |
static
Agent |
fromJson(JsonReader jsonReader)
Reads an instance of Agent |
Gpu |
gpuInstanceProfile()
Get the gpu |
String |
hostGroupId()
Get the host |
Kubelet |
kubeletConfig()
Get the kubelet |
Kubelet |
kubeletDiskType()
Get the kubelet |
Linux |
linuxOSConfig()
Get the linux |
Integer |
maxCount()
Get the max |
Integer |
maxPods()
Get the max |
Integer |
minCount()
Get the min |
Agent |
mode()
Get the mode property: A cluster must have at least one 'System' Agent Pool at all times. |
String |
name()
Get the name property: The name of the resource that is unique within a resource group. |
Agent |
networkProfile()
Get the network |
String |
nodeImageVersion()
Get the node |
Map<String,String> |
nodeLabels()
Get the node |
String |
nodePublicIpPrefixId()
Get the node |
List<String> |
nodeTaints()
Get the node |
String |
orchestratorVersion()
Get the orchestrator |
Integer |
osDiskSizeGB()
Get the os |
OSDisk |
osDiskType()
Get the os |
OSSku |
osSku()
Get the os |
OSType |
osType()
Get the os |
String |
podSubnetId()
Get the pod |
Power |
powerState()
Get the power |
String |
provisioningState()
Get the provisioning |
String |
proximityPlacementGroupId()
Get the proximity |
Scale |
scaleDownMode()
Get the scale |
Scale |
scaleSetEvictionPolicy()
Get the scale |
Scale |
scaleSetPriority()
Get the scale |
Agent |
securityProfile()
Get the security |
Float |
spotMaxPrice()
Get the spot |
Map<String,String> |
tags()
Get the tags property: The tags to be persisted on the agent pool virtual machine scale set. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Resource type. |
Agent |
typePropertiesType()
Get the type property: The type of Agent Pool. |
Agent |
upgradeSettings()
Get the upgrade |
void |
validate()
Validates the instance. |
String |
vmSize()
Get the vm |
String |
vnetSubnetId()
Get the vnet |
Agent |
windowsProfile()
Get the windows |
Agent |
withAvailabilityZones(List<String> availabilityZones)
Set the availability |
Agent |
withCapacityReservationGroupId(String capacityReservationGroupId)
Set the capacity |
Agent |
withCount(Integer count)
Set the count property: Number of agents (VMs) to host docker containers. |
Agent |
withCreationData(CreationData creationData)
Set the creation |
Agent |
withEnableAutoScaling(Boolean enableAutoScaling)
Set the enable |
Agent |
withEnableEncryptionAtHost(Boolean enableEncryptionAtHost)
Set the enable |
Agent |
withEnableFips(Boolean enableFips)
Set the enable |
Agent |
withEnableNodePublicIp(Boolean enableNodePublicIp)
Set the enable |
Agent |
withEnableUltraSsd(Boolean enableUltraSsd)
Set the enable |
Agent |
withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile)
Set the gpu |
Agent |
withHostGroupId(String hostGroupId)
Set the host |
Agent |
withId(String id) |
Agent |
withKubeletConfig(KubeletConfig kubeletConfig)
Set the kubelet |
Agent |
withKubeletDiskType(KubeletDiskType kubeletDiskType)
Set the kubelet |
Agent |
withLinuxOSConfig(LinuxOSConfig linuxOSConfig)
Set the linux |
Agent |
withMaxCount(Integer maxCount)
Set the max |
Agent |
withMaxPods(Integer maxPods)
Set the max |
Agent |
withMinCount(Integer minCount)
Set the min |
Agent |
withMode(AgentPoolMode mode)
Set the mode property: A cluster must have at least one 'System' Agent Pool at all times. |
Agent |
withNetworkProfile(AgentPoolNetworkProfile networkProfile)
Set the network |
Agent |
withNodeLabels(Map<String,String> nodeLabels)
Set the node |
Agent |
withNodePublicIpPrefixId(String nodePublicIpPrefixId)
Set the node |
Agent |
withNodeTaints(List<String> nodeTaints)
Set the node |
Agent |
withOrchestratorVersion(String orchestratorVersion)
Set the orchestrator |
Agent |
withOsDiskSizeGB(Integer osDiskSizeGB)
Set the os |
Agent |
withOsDiskType(OSDiskType osDiskType)
Set the os |
Agent |
withOsSku(OSSku osSku)
Set the os |
Agent |
withOsType(OSType osType)
Set the os |
Agent |
withPodSubnetId(String podSubnetId)
Set the pod |
Agent |
withPowerState(PowerState powerState)
Set the power |
Agent |
withProximityPlacementGroupId(String proximityPlacementGroupId)
Set the proximity |
Agent |
withScaleDownMode(ScaleDownMode scaleDownMode)
Set the scale |
Agent |
withScaleSetEvictionPolicy(ScaleSetEvictionPolicy scaleSetEvictionPolicy)
Set the scale |
Agent |
withScaleSetPriority(ScaleSetPriority scaleSetPriority)
Set the scale |
Agent |
withSecurityProfile(AgentPoolSecurityProfile securityProfile)
Set the security |
Agent |
withSpotMaxPrice(Float spotMaxPrice)
Set the spot |
Agent |
withTags(Map<String,String> tags)
Set the tags property: The tags to be persisted on the agent pool virtual machine scale set. |
Agent |
withTypePropertiesType(AgentPoolType type)
Set the type property: The type of Agent Pool. |
Agent |
withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)
Set the upgrade |
Agent |
withVmSize(String vmSize)
Set the vm |
Agent |
withVnetSubnetId(String vnetSubnetId)
Set the vnet |
Agent |
withWindowsProfile(AgentPoolWindowsProfile windowsProfile)
Set the windows |
Agent |
withWorkloadRuntime(WorkloadRuntime workloadRuntime)
Set the workload |
Workload |
workloadRuntime()
Get the workload |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
AgentPoolInner
public AgentPoolInner()
Creates an instance of AgentPoolInner class.
Method Details
availabilityZones
public List
Get the availabilityZones property: The list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'.
Returns:
capacityReservationGroupId
public String capacityReservationGroupId()
Get the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity Reservation Group.
Returns:
count
public Integer count()
Get the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1.
Returns:
creationData
public CreationData creationData()
Get the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot.
Returns:
currentOrchestratorVersion
public String currentOrchestratorVersion()
Get the currentOrchestratorVersion property: If orchestratorVersion is a fully specified version <major.minor.patch>, this field will be exactly equal to it. If orchestratorVersion is <major.minor>, this field will contain the full <major.minor.patch> version being used.
Returns:
enableAutoScaling
public Boolean enableAutoScaling()
Get the enableAutoScaling property: Whether to enable auto-scaler.
Returns:
enableEncryptionAtHost
public Boolean enableEncryptionAtHost()
Get the enableEncryptionAtHost property: This is only supported on certain VM sizes and in certain Azure regions. For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption.
Returns:
enableFips
public Boolean enableFips()
Get the enableFips property: See [Add a FIPS-enabled node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools\#add-a-fips-enabled-node-pool-preview) for more details.
Returns:
enableNodePublicIp
public Boolean enableNodePublicIp()
Get the enableNodePublicIp property: Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools\#assign-a-public-ip-per-node-for-your-node-pools). The default is false.
Returns:
enableUltraSsd
public Boolean enableUltraSsd()
Get the enableUltraSsd property: Whether to enable UltraSSD.
Returns:
fromJson
public static AgentPoolInner fromJson(JsonReader jsonReader)
Reads an instance of AgentPoolInner from the JsonReader.
Parameters:
Returns:
Throws:
gpuInstanceProfile
public GpuInstanceProfile gpuInstanceProfile()
Get the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.
Returns:
hostGroupId
public String hostGroupId()
Get the hostGroupId property: This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts).
Returns:
kubeletConfig
public KubeletConfig kubeletConfig()
Get the kubeletConfig property: The Kubelet configuration on the agent pool nodes.
Returns:
kubeletDiskType
public KubeletDiskType kubeletDiskType()
Get the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.
Returns:
linuxOSConfig
public LinuxOSConfig linuxOSConfig()
Get the linuxOSConfig property: The OS configuration of Linux agent nodes.
Returns:
maxCount
public Integer maxCount()
Get the maxCount property: The maximum number of nodes for auto-scaling.
Returns:
maxPods
public Integer maxPods()
Get the maxPods property: The maximum number of pods that can run on a node.
Returns:
minCount
public Integer minCount()
Get the minCount property: The minimum number of nodes for auto-scaling.
Returns:
mode
public AgentPoolMode mode()
Get the mode property: A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools.
Returns:
name
public String name()
Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
Returns:
networkProfile
public AgentPoolNetworkProfile networkProfile()
Get the networkProfile property: Network-related settings of an agent pool.
Returns:
nodeImageVersion
public String nodeImageVersion()
Get the nodeImageVersion property: The version of node image.
Returns:
nodeLabels
public Map
Get the nodeLabels property: The node labels to be persisted across all nodes in agent pool.
Returns:
nodePublicIpPrefixId
public String nodePublicIpPrefixId()
Get the nodePublicIpPrefixId property: This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}.
Returns:
nodeTaints
public List
Get the nodeTaints property: The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
Returns:
orchestratorVersion
public String orchestratorVersion()
Get the orchestratorVersion property: Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools\#upgrade-a-node-pool).
Returns:
osDiskSizeGB
public Integer osDiskSizeGB()
Get the osDiskSizeGB property: OS Disk Size in GB to be used to specify the disk size for every machine in the master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
Returns:
osDiskType
public OSDiskType osDiskType()
Get the osDiskType property: The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral OS](https://docs.microsoft.com/azure/aks/cluster-configuration\#ephemeral-os).
Returns:
osSku
public OSSku osSku()
Get the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows.
Returns:
osType
public OSType osType()
Get the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.
Returns:
podSubnetId
public String podSubnetId()
Get the podSubnetId property: If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.
Returns:
powerState
public PowerState powerState()
Get the powerState property: When an Agent Pool is first created it is initially Running. The Agent Pool can be stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The current deployment or provisioning state.
Returns:
proximityPlacementGroupId
public String proximityPlacementGroupId()
Get the proximityPlacementGroupId property: The ID for Proximity Placement Group.
Returns:
scaleDownMode
public ScaleDownMode scaleDownMode()
Get the scaleDownMode property: This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete.
Returns:
scaleSetEvictionPolicy
public ScaleSetEvictionPolicy scaleSetEvictionPolicy()
Get the scaleSetEvictionPolicy property: This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'.
Returns:
scaleSetPriority
public ScaleSetPriority scaleSetPriority()
Get the scaleSetPriority property: The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'.
Returns:
securityProfile
public AgentPoolSecurityProfile securityProfile()
Get the securityProfile property: The security settings of an agent pool.
Returns:
spotMaxPrice
public Float spotMaxPrice()
Get the spotMaxPrice property: Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any on-demand price. For more details on spot pricing, see [spot VMs pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms\#pricing).
Returns:
tags
public Map
Get the tags property: The tags to be persisted on the agent pool virtual machine scale set.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AgentPoolInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Returns:
typePropertiesType
public AgentPoolType typePropertiesType()
Get the type property: The type of Agent Pool.
Returns:
upgradeSettings
public AgentPoolUpgradeSettings upgradeSettings()
Get the upgradeSettings property: Settings for upgrading the agentpool.
Returns:
validate
public void validate()
Validates the instance.
vmSize
public String vmSize()
Get the vmSize property: VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.
Returns:
vnetSubnetId
public String vnetSubnetId()
Get the vnetSubnetId property: If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.
Returns:
windowsProfile
public AgentPoolWindowsProfile windowsProfile()
Get the windowsProfile property: The Windows agent pool's specific profile.
Returns:
withAvailabilityZones
public AgentPoolInner withAvailabilityZones(List
Set the availabilityZones property: The list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'.
Parameters:
Returns:
withCapacityReservationGroupId
public AgentPoolInner withCapacityReservationGroupId(String capacityReservationGroupId)
Set the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity Reservation Group.
Parameters:
Returns:
withCount
public AgentPoolInner withCount(Integer count)
Set the count property: Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1.
Parameters:
Returns:
withCreationData
public AgentPoolInner withCreationData(CreationData creationData)
Set the creationData property: CreationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot.
Parameters:
Returns:
withEnableAutoScaling
public AgentPoolInner withEnableAutoScaling(Boolean enableAutoScaling)
Set the enableAutoScaling property: Whether to enable auto-scaler.
Parameters:
Returns:
withEnableEncryptionAtHost
public AgentPoolInner withEnableEncryptionAtHost(Boolean enableEncryptionAtHost)
Set the enableEncryptionAtHost property: This is only supported on certain VM sizes and in certain Azure regions. For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption.
Parameters:
Returns:
withEnableFips
public AgentPoolInner withEnableFips(Boolean enableFips)
Set the enableFips property: See [Add a FIPS-enabled node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools\#add-a-fips-enabled-node-pool-preview) for more details.
Parameters:
Returns:
withEnableNodePublicIp
public AgentPoolInner withEnableNodePublicIp(Boolean enableNodePublicIp)
Set the enableNodePublicIp property: Some scenarios may require nodes in a node pool to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. For more information see [assigning a public IP per node](https://docs.microsoft.com/azure/aks/use-multiple-node-pools\#assign-a-public-ip-per-node-for-your-node-pools). The default is false.
Parameters:
Returns:
withEnableUltraSsd
public AgentPoolInner withEnableUltraSsd(Boolean enableUltraSsd)
Set the enableUltraSsd property: Whether to enable UltraSSD.
Parameters:
Returns:
withGpuInstanceProfile
public AgentPoolInner withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile)
Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.
Parameters:
Returns:
withHostGroupId
public AgentPoolInner withHostGroupId(String hostGroupId)
Set the hostGroupId property: This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see [Azure dedicated hosts](https://docs.microsoft.com/azure/virtual-machines/dedicated-hosts).
Parameters:
Returns:
withId
public AgentPoolInner withId(String id)
Overrides:
AgentPoolInner.withId(String id)Parameters:
withKubeletConfig
public AgentPoolInner withKubeletConfig(KubeletConfig kubeletConfig)
Set the kubeletConfig property: The Kubelet configuration on the agent pool nodes.
Parameters:
Returns:
withKubeletDiskType
public AgentPoolInner withKubeletDiskType(KubeletDiskType kubeletDiskType)
Set the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.
Parameters:
Returns:
withLinuxOSConfig
public AgentPoolInner withLinuxOSConfig(LinuxOSConfig linuxOSConfig)
Set the linuxOSConfig property: The OS configuration of Linux agent nodes.
Parameters:
Returns:
withMaxCount
public AgentPoolInner withMaxCount(Integer maxCount)
Set the maxCount property: The maximum number of nodes for auto-scaling.
Parameters:
Returns:
withMaxPods
public AgentPoolInner withMaxPods(Integer maxPods)
Set the maxPods property: The maximum number of pods that can run on a node.
Parameters:
Returns:
withMinCount
public AgentPoolInner withMinCount(Integer minCount)
Set the minCount property: The minimum number of nodes for auto-scaling.
Parameters:
Returns:
withMode
public AgentPoolInner withMode(AgentPoolMode mode)
Set the mode property: A cluster must have at least one 'System' Agent Pool at all times. For additional information on agent pool restrictions and best practices, see: https://docs.microsoft.com/azure/aks/use-system-pools.
Parameters:
Returns:
withNetworkProfile
public AgentPoolInner withNetworkProfile(AgentPoolNetworkProfile networkProfile)
Set the networkProfile property: Network-related settings of an agent pool.
Parameters:
Returns:
withNodeLabels
public AgentPoolInner withNodeLabels(Map
Set the nodeLabels property: The node labels to be persisted across all nodes in agent pool.
Parameters:
Returns:
withNodePublicIpPrefixId
public AgentPoolInner withNodePublicIpPrefixId(String nodePublicIpPrefixId)
Set the nodePublicIpPrefixId property: This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}.
Parameters:
Returns:
withNodeTaints
public AgentPoolInner withNodeTaints(List
Set the nodeTaints property: The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
Parameters:
Returns:
withOrchestratorVersion
public AgentPoolInner withOrchestratorVersion(String orchestratorVersion)
Set the orchestratorVersion property: Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. As a best practice, you should upgrade all node pools in an AKS cluster to the same Kubernetes version. The node pool version must have the same major version as the control plane. The node pool minor version must be within two minor versions of the control plane version. The node pool version cannot be greater than the control plane version. For more information see [upgrading a node pool](https://docs.microsoft.com/azure/aks/use-multiple-node-pools\#upgrade-a-node-pool).
Parameters:
Returns:
withOsDiskSizeGB
public AgentPoolInner withOsDiskSizeGB(Integer osDiskSizeGB)
Set the osDiskSizeGB property: OS Disk Size in GB to be used to specify the disk size for every machine in the master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.
Parameters:
Returns:
withOsDiskType
public AgentPoolInner withOsDiskType(OSDiskType osDiskType)
Set the osDiskType property: The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral OS](https://docs.microsoft.com/azure/aks/cluster-configuration\#ephemeral-os).
Parameters:
Returns:
withOsSku
public AgentPoolInner withOsSku(OSSku osSku)
Set the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows.
Parameters:
Returns:
withOsType
public AgentPoolInner withOsType(OSType osType)
Set the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.
Parameters:
Returns:
withPodSubnetId
public AgentPoolInner withPodSubnetId(String podSubnetId)
Set the podSubnetId property: If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.
Parameters:
Returns:
withPowerState
public AgentPoolInner withPowerState(PowerState powerState)
Set the powerState property: When an Agent Pool is first created it is initially Running. The Agent Pool can be stopped by setting this field to Stopped. A stopped Agent Pool stops all of its VMs and does not accrue billing charges. An Agent Pool can only be stopped if it is Running and provisioning state is Succeeded.
Parameters:
Returns:
withProximityPlacementGroupId
public AgentPoolInner withProximityPlacementGroupId(String proximityPlacementGroupId)
Set the proximityPlacementGroupId property: The ID for Proximity Placement Group.
Parameters:
Returns:
withScaleDownMode
public AgentPoolInner withScaleDownMode(ScaleDownMode scaleDownMode)
Set the scaleDownMode property: This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete.
Parameters:
Returns:
withScaleSetEvictionPolicy
public AgentPoolInner withScaleSetEvictionPolicy(ScaleSetEvictionPolicy scaleSetEvictionPolicy)
Set the scaleSetEvictionPolicy property: This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'.
Parameters:
Returns:
withScaleSetPriority
public AgentPoolInner withScaleSetPriority(ScaleSetPriority scaleSetPriority)
Set the scaleSetPriority property: The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'.
Parameters:
Returns:
withSecurityProfile
public AgentPoolInner withSecurityProfile(AgentPoolSecurityProfile securityProfile)
Set the securityProfile property: The security settings of an agent pool.
Parameters:
Returns:
withSpotMaxPrice
public AgentPoolInner withSpotMaxPrice(Float spotMaxPrice)
Set the spotMaxPrice property: Possible values are any decimal value greater than zero or -1 which indicates the willingness to pay any on-demand price. For more details on spot pricing, see [spot VMs pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms\#pricing).
Parameters:
Returns:
withTags
public AgentPoolInner withTags(Map
Set the tags property: The tags to be persisted on the agent pool virtual machine scale set.
Parameters:
Returns:
withTypePropertiesType
public AgentPoolInner withTypePropertiesType(AgentPoolType type)
Set the type property: The type of Agent Pool.
Parameters:
Returns:
withUpgradeSettings
public AgentPoolInner withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)
Set the upgradeSettings property: Settings for upgrading the agentpool.
Parameters:
Returns:
withVmSize
public AgentPoolInner withVmSize(String vmSize)
Set the vmSize property: VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.
Parameters:
Returns:
withVnetSubnetId
public AgentPoolInner withVnetSubnetId(String vnetSubnetId)
Set the vnetSubnetId property: If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.
Parameters:
Returns:
withWindowsProfile
public AgentPoolInner withWindowsProfile(AgentPoolWindowsProfile windowsProfile)
Set the windowsProfile property: The Windows agent pool's specific profile.
Parameters:
Returns:
withWorkloadRuntime
public AgentPoolInner withWorkloadRuntime(WorkloadRuntime workloadRuntime)
Set the workloadRuntime property: Determines the type of workload a node can run.
Parameters:
Returns:
workloadRuntime
public WorkloadRuntime workloadRuntime()
Get the workloadRuntime property: Determines the type of workload a node can run.
Returns:
Applies to
Azure SDK for Java