Class ManagedClusterAgentPoolProfileProperties
java.lang.Object
com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAgentPoolProfileProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterAgentPoolProfileProperties>
- Direct Known Subclasses:
ManagedClusterAgentPoolProfile
public class ManagedClusterAgentPoolProfileProperties
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterAgentPoolProfileProperties>
Properties for the container service agent pool profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterAgentPoolProfileProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the availabilityZones property: The list of Availability zones to use for nodes.Get the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity Reservation Group.count()Get the count property: Number of agents (VMs) to host docker containers.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.Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running.Get the enableAutoScaling property: Whether to enable auto-scaler.Get the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption.Get the enableFips property: Whether to use a FIPS-enabled OS.Get the enableNodePublicIp property: Whether each node is allocated its own public IP.Get the enableUltraSsd property: Whether to enable UltraSSD.etag()Get the etag property: Unique read-only string used to implement optimistic concurrency.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterAgentPoolProfileProperties from the JsonReader.Get the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode.Get the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.Get the gpuProfile property: GPU settings for the Agent Pool.Get the hostGroupId property: The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from, used only in creation scenario and not allowed to changed once set.Get the kubeletConfig property: The Kubelet configuration on the agent pool nodes.Get the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.Get the linuxOSConfig property: The OS configuration of Linux agent nodes.maxCount()Get the maxCount property: The maximum number of nodes for auto-scaling.maxPods()Get the maxPods property: The maximum number of pods that can run on a node.Get the messageOfTheDay property: Message of the day for Linux nodes, base64-encoded.minCount()Get the minCount property: The minimum number of nodes for auto-scaling.mode()Get the mode property: The mode of an agent pool.Get the networkProfile property: Network-related settings of an agent pool.Get the nodeImageVersion property: The version of node image.Get the nodeLabels property: The node labels to be persisted across all nodes in agent pool.Get the nodePublicIpPrefixId property: The public IP prefix ID which VM nodes should use IPs from.Get the nodeTaints property: The taints added to new nodes during node pool create and scale.Get the orchestratorVersion property: The version of Kubernetes specified by the user.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.Get the osDiskType property: The OS disk type to be used for machines in the agent pool.osSku()Get the osSku property: Specifies the OS SKU used by the agent pool.osType()Get the osType property: OsType to be used to specify os type.Get the podIpAllocationMode property: Pod IP Allocation Mode.Get the podSubnetId property: The ID of the subnet which pods will join when launched.Get the powerState property: Whether the Agent Pool is running or stopped.Get the provisioningState property: The current deployment or provisioning state.Get the proximityPlacementGroupId property: The ID for Proximity Placement Group.Get the scaleDownMode property: The scale down mode to use when scaling the Agent Pool.Get the scaleSetEvictionPolicy property: The Virtual Machine Scale Set eviction policy to use.Get the scaleSetPriority property: The Virtual Machine Scale Set priority.Get the securityProfile property: The security settings of an agent pool.Get the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances.status()Get the status property: Contains read-only information about the Agent Pool.tags()Get the tags property: The tags to be persisted on the agent pool virtual machine scale set.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of Agent Pool.Get the upgradeSettings property: Settings for upgrading the agentpool.voidvalidate()Validates the instance.Get the virtualMachineNodesStatus property: The status of nodes in a VirtualMachines agent pool.Get the virtualMachinesProfile property: Specifications on VirtualMachines agent pool.vmSize()Get the vmSize property: The size of the agent pool VMs.Get the vnetSubnetId property: The ID of the subnet which agent pool nodes and optionally pods will join on startup.Get the windowsProfile property: The Windows agent pool's specific profile.withAvailabilityZones(List<String> availabilityZones) Set the availabilityZones property: The list of Availability zones to use for nodes.withCapacityReservationGroupId(String capacityReservationGroupId) Set the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity Reservation Group.Set the count property: Number of agents (VMs) to host docker containers.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.withEnableAutoScaling(Boolean enableAutoScaling) Set the enableAutoScaling property: Whether to enable auto-scaler.withEnableEncryptionAtHost(Boolean enableEncryptionAtHost) Set the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption.withEnableFips(Boolean enableFips) Set the enableFips property: Whether to use a FIPS-enabled OS.withEnableNodePublicIp(Boolean enableNodePublicIp) Set the enableNodePublicIp property: Whether each node is allocated its own public IP.withEnableUltraSsd(Boolean enableUltraSsd) Set the enableUltraSsd property: Whether to enable UltraSSD.withGatewayProfile(AgentPoolGatewayProfile gatewayProfile) Set the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode.withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile) Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.withGpuProfile(GpuProfile gpuProfile) Set the gpuProfile property: GPU settings for the Agent Pool.withHostGroupId(String hostGroupId) Set the hostGroupId property: The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from, used only in creation scenario and not allowed to changed once set.withKubeletConfig(KubeletConfig kubeletConfig) Set the kubeletConfig property: The Kubelet configuration on the agent pool nodes.withKubeletDiskType(KubeletDiskType kubeletDiskType) Set the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.withLinuxOSConfig(LinuxOSConfig linuxOSConfig) Set the linuxOSConfig property: The OS configuration of Linux agent nodes.withMaxCount(Integer maxCount) Set the maxCount property: The maximum number of nodes for auto-scaling.withMaxPods(Integer maxPods) Set the maxPods property: The maximum number of pods that can run on a node.withMessageOfTheDay(String messageOfTheDay) Set the messageOfTheDay property: Message of the day for Linux nodes, base64-encoded.withMinCount(Integer minCount) Set the minCount property: The minimum number of nodes for auto-scaling.withMode(AgentPoolMode mode) Set the mode property: The mode of an agent pool.withNetworkProfile(AgentPoolNetworkProfile networkProfile) Set the networkProfile property: Network-related settings of an agent pool.withNodeLabels(Map<String, String> nodeLabels) Set the nodeLabels property: The node labels to be persisted across all nodes in agent pool.withNodePublicIpPrefixId(String nodePublicIpPrefixId) Set the nodePublicIpPrefixId property: The public IP prefix ID which VM nodes should use IPs from.withNodeTaints(List<String> nodeTaints) Set the nodeTaints property: The taints added to new nodes during node pool create and scale.withOrchestratorVersion(String orchestratorVersion) Set the orchestratorVersion property: The version of Kubernetes specified by the user.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.withOsDiskType(OSDiskType osDiskType) Set the osDiskType property: The OS disk type to be used for machines in the agent pool.Set the osSku property: Specifies the OS SKU used by the agent pool.withOsType(OSType osType) Set the osType property: OsType to be used to specify os type.withPodIpAllocationMode(PodIpAllocationMode podIpAllocationMode) Set the podIpAllocationMode property: Pod IP Allocation Mode.withPodSubnetId(String podSubnetId) Set the podSubnetId property: The ID of the subnet which pods will join when launched.withPowerState(PowerState powerState) Set the powerState property: Whether the Agent Pool is running or stopped.withProximityPlacementGroupId(String proximityPlacementGroupId) Set the proximityPlacementGroupId property: The ID for Proximity Placement Group.withScaleDownMode(ScaleDownMode scaleDownMode) Set the scaleDownMode property: The scale down mode to use when scaling the Agent Pool.withScaleSetEvictionPolicy(ScaleSetEvictionPolicy scaleSetEvictionPolicy) Set the scaleSetEvictionPolicy property: The Virtual Machine Scale Set eviction policy to use.withScaleSetPriority(ScaleSetPriority scaleSetPriority) Set the scaleSetPriority property: The Virtual Machine Scale Set priority.withSecurityProfile(AgentPoolSecurityProfile securityProfile) Set the securityProfile property: The security settings of an agent pool.withSpotMaxPrice(Float spotMaxPrice) Set the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances.withStatus(AgentPoolStatus status) Set the status property: Contains read-only information about the Agent Pool.Set the tags property: The tags to be persisted on the agent pool virtual machine scale set.withType(AgentPoolType type) Set the type property: The type of Agent Pool.withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings) Set the upgradeSettings property: Settings for upgrading the agentpool.withVirtualMachineNodesStatus(List<VirtualMachineNodes> virtualMachineNodesStatus) Set the virtualMachineNodesStatus property: The status of nodes in a VirtualMachines agent pool.withVirtualMachinesProfile(VirtualMachinesProfile virtualMachinesProfile) Set the virtualMachinesProfile property: Specifications on VirtualMachines agent pool.withVmSize(String vmSize) Set the vmSize property: The size of the agent pool VMs.withVnetSubnetId(String vnetSubnetId) Set the vnetSubnetId property: The ID of the subnet which agent pool nodes and optionally pods will join on startup.withWindowsProfile(AgentPoolWindowsProfile windowsProfile) Set the windowsProfile property: The Windows agent pool's specific profile.withWorkloadRuntime(WorkloadRuntime workloadRuntime) Set the workloadRuntime property: Determines the type of workload a node can run.Get the workloadRuntime property: Determines the type of workload a node can run.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterAgentPoolProfileProperties
public ManagedClusterAgentPoolProfileProperties()Creates an instance of ManagedClusterAgentPoolProfileProperties class.
-
-
Method Details
-
etag
Get the etag property: Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.- Returns:
- the etag value.
-
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:
- the count value.
-
withCount
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:
count- the count value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
vmSize
Get the vmSize property: The size of the agent pool VMs. 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:
- the vmSize value.
-
withVmSize
Set the vmSize property: The size of the agent pool VMs. 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:
vmSize- the vmSize value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
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:
- the osDiskSizeGB value.
-
withOsDiskSizeGB
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:
osDiskSizeGB- the osDiskSizeGB value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
osDiskType
Get the osDiskType property: 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'. May not be changed after creation. For more information see [Ephemeral OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os).- Returns:
- the osDiskType value.
-
withOsDiskType
Set the osDiskType property: 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'. May not be changed after creation. For more information see [Ephemeral OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os).- Parameters:
osDiskType- the osDiskType value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
kubeletDiskType
Get the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.- Returns:
- the kubeletDiskType value.
-
withKubeletDiskType
public ManagedClusterAgentPoolProfileProperties withKubeletDiskType(KubeletDiskType kubeletDiskType) Set the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.- Parameters:
kubeletDiskType- the kubeletDiskType value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
workloadRuntime
Get the workloadRuntime property: Determines the type of workload a node can run.- Returns:
- the workloadRuntime value.
-
withWorkloadRuntime
public ManagedClusterAgentPoolProfileProperties withWorkloadRuntime(WorkloadRuntime workloadRuntime) Set the workloadRuntime property: Determines the type of workload a node can run.- Parameters:
workloadRuntime- the workloadRuntime value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
messageOfTheDay
Get the messageOfTheDay property: Message of the day for Linux nodes, base64-encoded. A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script).- Returns:
- the messageOfTheDay value.
-
withMessageOfTheDay
Set the messageOfTheDay property: Message of the day for Linux nodes, base64-encoded. A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script).- Parameters:
messageOfTheDay- the messageOfTheDay value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
vnetSubnetId
Get the vnetSubnetId property: The ID of the subnet which agent pool nodes and optionally pods will join on startup. 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:
- the vnetSubnetId value.
-
withVnetSubnetId
Set the vnetSubnetId property: The ID of the subnet which agent pool nodes and optionally pods will join on startup. 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:
vnetSubnetId- the vnetSubnetId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
podSubnetId
Get the podSubnetId property: The ID of the subnet which pods will join when launched. 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:
- the podSubnetId value.
-
withPodSubnetId
Set the podSubnetId property: The ID of the subnet which pods will join when launched. 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:
podSubnetId- the podSubnetId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
podIpAllocationMode
Get the podIpAllocationMode property: Pod IP Allocation Mode. The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'.- Returns:
- the podIpAllocationMode value.
-
withPodIpAllocationMode
public ManagedClusterAgentPoolProfileProperties withPodIpAllocationMode(PodIpAllocationMode podIpAllocationMode) Set the podIpAllocationMode property: Pod IP Allocation Mode. The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'.- Parameters:
podIpAllocationMode- the podIpAllocationMode value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
maxPods
Get the maxPods property: The maximum number of pods that can run on a node.- Returns:
- the maxPods value.
-
withMaxPods
Set the maxPods property: The maximum number of pods that can run on a node.- Parameters:
maxPods- the maxPods value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
osType
Get the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.- Returns:
- the osType value.
-
withOsType
Set the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.- Parameters:
osType- the osType value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
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:
- the osSku value.
-
withOsSku
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:
osSku- the osSku value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
maxCount
Get the maxCount property: The maximum number of nodes for auto-scaling.- Returns:
- the maxCount value.
-
withMaxCount
Set the maxCount property: The maximum number of nodes for auto-scaling.- Parameters:
maxCount- the maxCount value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
minCount
Get the minCount property: The minimum number of nodes for auto-scaling.- Returns:
- the minCount value.
-
withMinCount
Set the minCount property: The minimum number of nodes for auto-scaling.- Parameters:
minCount- the minCount value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
enableAutoScaling
Get the enableAutoScaling property: Whether to enable auto-scaler.- Returns:
- the enableAutoScaling value.
-
withEnableAutoScaling
Set the enableAutoScaling property: Whether to enable auto-scaler.- Parameters:
enableAutoScaling- the enableAutoScaling value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
scaleDownMode
Get the scaleDownMode property: The scale down mode to use when scaling the Agent Pool. This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete.- Returns:
- the scaleDownMode value.
-
withScaleDownMode
Set the scaleDownMode property: The scale down mode to use when scaling the Agent Pool. This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete.- Parameters:
scaleDownMode- the scaleDownMode value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
type
Get the type property: The type of Agent Pool.- Returns:
- the type value.
-
withType
Set the type property: The type of Agent Pool.- Parameters:
type- the type value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
mode
Get the mode property: The mode of an agent pool. 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:
- the mode value.
-
withMode
Set the mode property: The mode of an agent pool. 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:
mode- the mode value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
orchestratorVersion
Get the orchestratorVersion property: The version of Kubernetes specified by the user. 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:
- the orchestratorVersion value.
-
withOrchestratorVersion
Set the orchestratorVersion property: The version of Kubernetes specified by the user. 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:
orchestratorVersion- the orchestratorVersion value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
currentOrchestratorVersion
Get the currentOrchestratorVersion property: The version of Kubernetes the Agent Pool is running. 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:
- the currentOrchestratorVersion value.
-
nodeImageVersion
Get the nodeImageVersion property: The version of node image.- Returns:
- the nodeImageVersion value.
-
upgradeSettings
Get the upgradeSettings property: Settings for upgrading the agentpool.- Returns:
- the upgradeSettings value.
-
withUpgradeSettings
public ManagedClusterAgentPoolProfileProperties withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings) Set the upgradeSettings property: Settings for upgrading the agentpool.- Parameters:
upgradeSettings- the upgradeSettings value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
provisioningState
Get the provisioningState property: The current deployment or provisioning state.- Returns:
- the provisioningState value.
-
powerState
Get the powerState property: Whether the Agent Pool is running or stopped. 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:
- the powerState value.
-
withPowerState
Set the powerState property: Whether the Agent Pool is running or stopped. 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:
powerState- the powerState value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
availabilityZones
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:
- the availabilityZones value.
-
withAvailabilityZones
public ManagedClusterAgentPoolProfileProperties withAvailabilityZones(List<String> availabilityZones) 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:
availabilityZones- the availabilityZones value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
enableNodePublicIp
Get the enableNodePublicIp property: Whether each node is allocated its own public IP. 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:
- the enableNodePublicIp value.
-
withEnableNodePublicIp
Set the enableNodePublicIp property: Whether each node is allocated its own public IP. 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:
enableNodePublicIp- the enableNodePublicIp value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
nodePublicIpPrefixId
Get the nodePublicIpPrefixId property: The public IP prefix ID which VM nodes should use IPs from. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}.- Returns:
- the nodePublicIpPrefixId value.
-
withNodePublicIpPrefixId
public ManagedClusterAgentPoolProfileProperties withNodePublicIpPrefixId(String nodePublicIpPrefixId) Set the nodePublicIpPrefixId property: The public IP prefix ID which VM nodes should use IPs from. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}.- Parameters:
nodePublicIpPrefixId- the nodePublicIpPrefixId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
scaleSetPriority
Get the scaleSetPriority property: The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'.- Returns:
- the scaleSetPriority value.
-
withScaleSetPriority
public ManagedClusterAgentPoolProfileProperties withScaleSetPriority(ScaleSetPriority scaleSetPriority) Set the scaleSetPriority property: The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'.- Parameters:
scaleSetPriority- the scaleSetPriority value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
scaleSetEvictionPolicy
Get the scaleSetEvictionPolicy property: The Virtual Machine Scale Set eviction policy to use. This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'.- Returns:
- the scaleSetEvictionPolicy value.
-
withScaleSetEvictionPolicy
public ManagedClusterAgentPoolProfileProperties withScaleSetEvictionPolicy(ScaleSetEvictionPolicy scaleSetEvictionPolicy) Set the scaleSetEvictionPolicy property: The Virtual Machine Scale Set eviction policy to use. This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'.- Parameters:
scaleSetEvictionPolicy- the scaleSetEvictionPolicy value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
spotMaxPrice
Get the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand. 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:
- the spotMaxPrice value.
-
withSpotMaxPrice
Set the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances. Possible values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand. 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:
spotMaxPrice- the spotMaxPrice value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
tags
Get the tags property: The tags to be persisted on the agent pool virtual machine scale set.- Returns:
- the tags value.
-
withTags
Set the tags property: The tags to be persisted on the agent pool virtual machine scale set.- Parameters:
tags- the tags value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
nodeLabels
Get the nodeLabels property: The node labels to be persisted across all nodes in agent pool.- Returns:
- the nodeLabels value.
-
withNodeLabels
Set the nodeLabels property: The node labels to be persisted across all nodes in agent pool.- Parameters:
nodeLabels- the nodeLabels value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
nodeTaints
Get the nodeTaints property: The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.- Returns:
- the nodeTaints value.
-
withNodeTaints
Set the nodeTaints property: The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.- Parameters:
nodeTaints- the nodeTaints value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
proximityPlacementGroupId
Get the proximityPlacementGroupId property: The ID for Proximity Placement Group.- Returns:
- the proximityPlacementGroupId value.
-
withProximityPlacementGroupId
public ManagedClusterAgentPoolProfileProperties withProximityPlacementGroupId(String proximityPlacementGroupId) Set the proximityPlacementGroupId property: The ID for Proximity Placement Group.- Parameters:
proximityPlacementGroupId- the proximityPlacementGroupId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
kubeletConfig
Get the kubeletConfig property: The Kubelet configuration on the agent pool nodes.- Returns:
- the kubeletConfig value.
-
withKubeletConfig
Set the kubeletConfig property: The Kubelet configuration on the agent pool nodes.- Parameters:
kubeletConfig- the kubeletConfig value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
linuxOSConfig
Get the linuxOSConfig property: The OS configuration of Linux agent nodes.- Returns:
- the linuxOSConfig value.
-
withLinuxOSConfig
Set the linuxOSConfig property: The OS configuration of Linux agent nodes.- Parameters:
linuxOSConfig- the linuxOSConfig value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
enableEncryptionAtHost
Get the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption. 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:
- the enableEncryptionAtHost value.
-
withEnableEncryptionAtHost
public ManagedClusterAgentPoolProfileProperties withEnableEncryptionAtHost(Boolean enableEncryptionAtHost) Set the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption. 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:
enableEncryptionAtHost- the enableEncryptionAtHost value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
enableUltraSsd
Get the enableUltraSsd property: Whether to enable UltraSSD.- Returns:
- the enableUltraSsd value.
-
withEnableUltraSsd
Set the enableUltraSsd property: Whether to enable UltraSSD.- Parameters:
enableUltraSsd- the enableUltraSsd value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
enableFips
Get the enableFips property: Whether to use a FIPS-enabled OS. 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:
- the enableFips value.
-
withEnableFips
Set the enableFips property: Whether to use a FIPS-enabled OS. 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:
enableFips- the enableFips value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
gpuInstanceProfile
Get the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.- Returns:
- the gpuInstanceProfile value.
-
withGpuInstanceProfile
public ManagedClusterAgentPoolProfileProperties withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile) Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.- Parameters:
gpuInstanceProfile- the gpuInstanceProfile value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
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:
- the creationData value.
-
withCreationData
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:
creationData- the creationData value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
capacityReservationGroupId
Get the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity Reservation Group.- Returns:
- the capacityReservationGroupId value.
-
withCapacityReservationGroupId
public ManagedClusterAgentPoolProfileProperties withCapacityReservationGroupId(String capacityReservationGroupId) Set the capacityReservationGroupId property: AKS will associate the specified agent pool with the Capacity Reservation Group.- Parameters:
capacityReservationGroupId- the capacityReservationGroupId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
hostGroupId
Get the hostGroupId property: The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from, used only in creation scenario and not allowed to changed once set. 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:
- the hostGroupId value.
-
withHostGroupId
Set the hostGroupId property: The fully qualified resource ID of the Dedicated Host Group to provision virtual machines from, used only in creation scenario and not allowed to changed once set. 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:
hostGroupId- the hostGroupId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
networkProfile
Get the networkProfile property: Network-related settings of an agent pool.- Returns:
- the networkProfile value.
-
withNetworkProfile
public ManagedClusterAgentPoolProfileProperties withNetworkProfile(AgentPoolNetworkProfile networkProfile) Set the networkProfile property: Network-related settings of an agent pool.- Parameters:
networkProfile- the networkProfile value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
windowsProfile
Get the windowsProfile property: The Windows agent pool's specific profile.- Returns:
- the windowsProfile value.
-
withWindowsProfile
public ManagedClusterAgentPoolProfileProperties withWindowsProfile(AgentPoolWindowsProfile windowsProfile) Set the windowsProfile property: The Windows agent pool's specific profile.- Parameters:
windowsProfile- the windowsProfile value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
securityProfile
Get the securityProfile property: The security settings of an agent pool.- Returns:
- the securityProfile value.
-
withSecurityProfile
public ManagedClusterAgentPoolProfileProperties withSecurityProfile(AgentPoolSecurityProfile securityProfile) Set the securityProfile property: The security settings of an agent pool.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
gpuProfile
Get the gpuProfile property: GPU settings for the Agent Pool.- Returns:
- the gpuProfile value.
-
withGpuProfile
Set the gpuProfile property: GPU settings for the Agent Pool.- Parameters:
gpuProfile- the gpuProfile value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
gatewayProfile
Get the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway.- Returns:
- the gatewayProfile value.
-
withGatewayProfile
public ManagedClusterAgentPoolProfileProperties withGatewayProfile(AgentPoolGatewayProfile gatewayProfile) Set the gatewayProfile property: Profile specific to a managed agent pool in Gateway mode. This field cannot be set if agent pool mode is not Gateway.- Parameters:
gatewayProfile- the gatewayProfile value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
virtualMachinesProfile
Get the virtualMachinesProfile property: Specifications on VirtualMachines agent pool.- Returns:
- the virtualMachinesProfile value.
-
withVirtualMachinesProfile
public ManagedClusterAgentPoolProfileProperties withVirtualMachinesProfile(VirtualMachinesProfile virtualMachinesProfile) Set the virtualMachinesProfile property: Specifications on VirtualMachines agent pool.- Parameters:
virtualMachinesProfile- the virtualMachinesProfile value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
virtualMachineNodesStatus
Get the virtualMachineNodesStatus property: The status of nodes in a VirtualMachines agent pool.- Returns:
- the virtualMachineNodesStatus value.
-
withVirtualMachineNodesStatus
public ManagedClusterAgentPoolProfileProperties withVirtualMachineNodesStatus(List<VirtualMachineNodes> virtualMachineNodesStatus) Set the virtualMachineNodesStatus property: The status of nodes in a VirtualMachines agent pool.- Parameters:
virtualMachineNodesStatus- the virtualMachineNodesStatus value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
status
Get the status property: Contains read-only information about the Agent Pool.- Returns:
- the status value.
-
withStatus
Set the status property: Contains read-only information about the Agent Pool.- Parameters:
status- the status value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterAgentPoolProfileProperties>- Throws:
IOException
-
fromJson
public static ManagedClusterAgentPoolProfileProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterAgentPoolProfileProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterAgentPoolProfileProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedClusterAgentPoolProfileProperties.
-