Class ManagedClusterAgentPoolProfile
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAgentPoolProfileProperties
-
- com.azure.resourcemanager.containerservice.models.ManagedClusterAgentPoolProfile
-
public final class ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolProfileProperties
Profile for the container service agent pool.
-
-
Constructor Summary
Constructors Constructor Description ManagedClusterAgentPoolProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: Unique name of the agent pool profile in the context of the subscription and resource group.voidvalidate()Validates the instance.ManagedClusterAgentPoolProfilewithAvailabilityZones(List<String> availabilityZones)Set the availabilityZones property: The list of Availability zones to use for nodes.ManagedClusterAgentPoolProfilewithCount(Integer count)Set the count property: Number of agents (VMs) to host docker containers.ManagedClusterAgentPoolProfilewithCreationData(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.ManagedClusterAgentPoolProfilewithEnableAutoScaling(Boolean enableAutoScaling)Set the enableAutoScaling property: Whether to enable auto-scaler.ManagedClusterAgentPoolProfilewithEnableEncryptionAtHost(Boolean enableEncryptionAtHost)Set the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption.ManagedClusterAgentPoolProfilewithEnableFips(Boolean enableFips)Set the enableFips property: Whether to use a FIPS-enabled OS.ManagedClusterAgentPoolProfilewithEnableNodePublicIp(Boolean enableNodePublicIp)Set the enableNodePublicIp property: Whether each node is allocated its own public IP.ManagedClusterAgentPoolProfilewithEnableUltraSsd(Boolean enableUltraSsd)Set the enableUltraSsd property: Whether to enable UltraSSD.ManagedClusterAgentPoolProfilewithGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile)Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.ManagedClusterAgentPoolProfilewithKubeletConfig(KubeletConfig kubeletConfig)Set the kubeletConfig property: Kubelet configurations of agent nodes.ManagedClusterAgentPoolProfilewithKubeletDiskType(KubeletDiskType kubeletDiskType)Set the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.ManagedClusterAgentPoolProfilewithLinuxOSConfig(LinuxOSConfig linuxOSConfig)Set the linuxOSConfig property: OS configurations of Linux agent nodes.ManagedClusterAgentPoolProfilewithMaxCount(Integer maxCount)Set the maxCount property: The maximum number of nodes for auto-scaling.ManagedClusterAgentPoolProfilewithMaxPods(Integer maxPods)Set the maxPods property: The maximum number of pods that can run on a node.ManagedClusterAgentPoolProfilewithMinCount(Integer minCount)Set the minCount property: The minimum number of nodes for auto-scaling.ManagedClusterAgentPoolProfilewithMode(AgentPoolMode mode)Set the mode property: The mode of an agent pool.ManagedClusterAgentPoolProfilewithName(String name)Set the name property: Unique name of the agent pool profile in the context of the subscription and resource group.ManagedClusterAgentPoolProfilewithNodeLabels(Map<String,String> nodeLabels)Set the nodeLabels property: The node labels to be persisted across all nodes in agent pool.ManagedClusterAgentPoolProfilewithNodePublicIpPrefixId(String nodePublicIpPrefixId)Set the nodePublicIpPrefixId property: The public IP prefix ID which VM nodes should use IPs from.ManagedClusterAgentPoolProfilewithNodeTaints(List<String> nodeTaints)Set the nodeTaints property: The taints added to new nodes during node pool create and scale.ManagedClusterAgentPoolProfilewithOrchestratorVersion(String orchestratorVersion)Set the orchestratorVersion property: The version of Kubernetes running on the Agent Pool.ManagedClusterAgentPoolProfilewithOsDiskSizeGB(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.ManagedClusterAgentPoolProfilewithOsDiskType(OSDiskType osDiskType)Set the osDiskType property: The OS disk type to be used for machines in the agent pool.ManagedClusterAgentPoolProfilewithOsSku(OSSku osSku)Set the osSku property: Specifies an OS SKU.ManagedClusterAgentPoolProfilewithOsType(OSType osType)Set the osType property: OsType to be used to specify os type.ManagedClusterAgentPoolProfilewithPodSubnetId(String podSubnetId)Set the podSubnetId property: The ID of the subnet which pods will join when launched.ManagedClusterAgentPoolProfilewithPowerState(PowerState powerState)Set the powerState property: When an Agent Pool is first created it is initially Running.ManagedClusterAgentPoolProfilewithProximityPlacementGroupId(String proximityPlacementGroupId)Set the proximityPlacementGroupId property: The ID for Proximity Placement Group.ManagedClusterAgentPoolProfilewithScaleDownMode(ScaleDownMode scaleDownMode)Set the scaleDownMode property: This also effects the cluster autoscaler behavior.ManagedClusterAgentPoolProfilewithScaleSetEvictionPolicy(ScaleSetEvictionPolicy scaleSetEvictionPolicy)Set the scaleSetEvictionPolicy property: The Virtual Machine Scale Set eviction policy.ManagedClusterAgentPoolProfilewithScaleSetPriority(ScaleSetPriority scaleSetPriority)Set the scaleSetPriority property: The Virtual Machine Scale Set priority.ManagedClusterAgentPoolProfilewithSpotMaxPrice(Float spotMaxPrice)Set the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances.ManagedClusterAgentPoolProfilewithTags(Map<String,String> tags)Set the tags property: The tags to be persisted on the agent pool virtual machine scale set.ManagedClusterAgentPoolProfilewithType(AgentPoolType type)Set the type property: The type of Agent Pool.ManagedClusterAgentPoolProfilewithUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)Set the upgradeSettings property: Settings for upgrading the agentpool.ManagedClusterAgentPoolProfilewithVmSize(String vmSize)Set the vmSize property: The size of the agent pool VMs.ManagedClusterAgentPoolProfilewithVnetSubnetId(String vnetSubnetId)Set the vnetSubnetId property: The ID of the subnet which agent pool nodes and optionally pods will join on startup.ManagedClusterAgentPoolProfilewithWorkloadRuntime(WorkloadRuntime workloadRuntime)Set the workloadRuntime property: Determines the type of workload a node can run.-
Methods inherited from class com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAgentPoolProfileProperties
availabilityZones, count, creationData, enableAutoScaling, enableEncryptionAtHost, enableFips, enableNodePublicIp, enableUltraSsd, gpuInstanceProfile, kubeletConfig, kubeletDiskType, linuxOSConfig, maxCount, maxPods, minCount, mode, nodeImageVersion, nodeLabels, nodePublicIpPrefixId, nodeTaints, orchestratorVersion, osDiskSizeGB, osDiskType, osSku, osType, podSubnetId, powerState, provisioningState, proximityPlacementGroupId, scaleDownMode, scaleSetEvictionPolicy, scaleSetPriority, spotMaxPrice, tags, type, upgradeSettings, vmSize, vnetSubnetId, workloadRuntime
-
-
-
-
Method Detail
-
name
public String name()
Get the name property: Unique name of the agent pool profile in the context of the subscription and resource group. Windows agent pool names must be 6 characters or less.- Returns:
- the name value.
-
withName
public ManagedClusterAgentPoolProfile withName(String name)
Set the name property: Unique name of the agent pool profile in the context of the subscription and resource group. Windows agent pool names must be 6 characters or less.- Parameters:
name- the name value to set.- Returns:
- the ManagedClusterAgentPoolProfile object itself.
-
withCount
public ManagedClusterAgentPoolProfile 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.- Overrides:
withCountin classManagedClusterAgentPoolProfileProperties- Parameters:
count- the count value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withVmSize
public ManagedClusterAgentPoolProfile withVmSize(String vmSize)
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.- Overrides:
withVmSizein classManagedClusterAgentPoolProfileProperties- Parameters:
vmSize- the vmSize value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withOsDiskSizeGB
public ManagedClusterAgentPoolProfile 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.- Overrides:
withOsDiskSizeGBin classManagedClusterAgentPoolProfileProperties- Parameters:
osDiskSizeGB- the osDiskSizeGB value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withOsDiskType
public ManagedClusterAgentPoolProfile withOsDiskType(OSDiskType osDiskType)
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).- Overrides:
withOsDiskTypein classManagedClusterAgentPoolProfileProperties- Parameters:
osDiskType- the osDiskType value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withKubeletDiskType
public ManagedClusterAgentPoolProfile withKubeletDiskType(KubeletDiskType kubeletDiskType)
Set the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.- Overrides:
withKubeletDiskTypein classManagedClusterAgentPoolProfileProperties- Parameters:
kubeletDiskType- the kubeletDiskType value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withWorkloadRuntime
public ManagedClusterAgentPoolProfile withWorkloadRuntime(WorkloadRuntime workloadRuntime)
Set the workloadRuntime property: Determines the type of workload a node can run.- Overrides:
withWorkloadRuntimein classManagedClusterAgentPoolProfileProperties- Parameters:
workloadRuntime- the workloadRuntime value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withVnetSubnetId
public ManagedClusterAgentPoolProfile withVnetSubnetId(String vnetSubnetId)
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}.- Overrides:
withVnetSubnetIdin classManagedClusterAgentPoolProfileProperties- Parameters:
vnetSubnetId- the vnetSubnetId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withPodSubnetId
public ManagedClusterAgentPoolProfile withPodSubnetId(String podSubnetId)
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}.- Overrides:
withPodSubnetIdin classManagedClusterAgentPoolProfileProperties- Parameters:
podSubnetId- the podSubnetId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withMaxPods
public ManagedClusterAgentPoolProfile withMaxPods(Integer maxPods)
Set the maxPods property: The maximum number of pods that can run on a node.- Overrides:
withMaxPodsin classManagedClusterAgentPoolProfileProperties- Parameters:
maxPods- the maxPods value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withOsType
public ManagedClusterAgentPoolProfile withOsType(OSType osType)
Set the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.- Overrides:
withOsTypein classManagedClusterAgentPoolProfileProperties- Parameters:
osType- the osType value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withOsSku
public ManagedClusterAgentPoolProfile withOsSku(OSSku osSku)
Set the osSku property: Specifies an OS SKU. This value must not be specified if OSType is Windows.- Overrides:
withOsSkuin classManagedClusterAgentPoolProfileProperties- Parameters:
osSku- the osSku value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withMaxCount
public ManagedClusterAgentPoolProfile withMaxCount(Integer maxCount)
Set the maxCount property: The maximum number of nodes for auto-scaling.- Overrides:
withMaxCountin classManagedClusterAgentPoolProfileProperties- Parameters:
maxCount- the maxCount value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withMinCount
public ManagedClusterAgentPoolProfile withMinCount(Integer minCount)
Set the minCount property: The minimum number of nodes for auto-scaling.- Overrides:
withMinCountin classManagedClusterAgentPoolProfileProperties- Parameters:
minCount- the minCount value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withEnableAutoScaling
public ManagedClusterAgentPoolProfile withEnableAutoScaling(Boolean enableAutoScaling)
Set the enableAutoScaling property: Whether to enable auto-scaler.- Overrides:
withEnableAutoScalingin classManagedClusterAgentPoolProfileProperties- Parameters:
enableAutoScaling- the enableAutoScaling value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withScaleDownMode
public ManagedClusterAgentPoolProfile withScaleDownMode(ScaleDownMode scaleDownMode)
Set the scaleDownMode property: This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete.- Overrides:
withScaleDownModein classManagedClusterAgentPoolProfileProperties- Parameters:
scaleDownMode- the scaleDownMode value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withType
public ManagedClusterAgentPoolProfile withType(AgentPoolType type)
Set the type property: The type of Agent Pool.- Overrides:
withTypein classManagedClusterAgentPoolProfileProperties- Parameters:
type- the type value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withMode
public ManagedClusterAgentPoolProfile withMode(AgentPoolMode mode)
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.- Overrides:
withModein classManagedClusterAgentPoolProfileProperties- Parameters:
mode- the mode value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withOrchestratorVersion
public ManagedClusterAgentPoolProfile withOrchestratorVersion(String orchestratorVersion)
Set the orchestratorVersion property: The version of Kubernetes running on the Agent Pool. 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).- Overrides:
withOrchestratorVersionin classManagedClusterAgentPoolProfileProperties- Parameters:
orchestratorVersion- the orchestratorVersion value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withUpgradeSettings
public ManagedClusterAgentPoolProfile withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)
Set the upgradeSettings property: Settings for upgrading the agentpool.- Overrides:
withUpgradeSettingsin classManagedClusterAgentPoolProfileProperties- Parameters:
upgradeSettings- the upgradeSettings value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withPowerState
public ManagedClusterAgentPoolProfile 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.- Overrides:
withPowerStatein classManagedClusterAgentPoolProfileProperties- Parameters:
powerState- the powerState value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withAvailabilityZones
public ManagedClusterAgentPoolProfile 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'.- Overrides:
withAvailabilityZonesin classManagedClusterAgentPoolProfileProperties- Parameters:
availabilityZones- the availabilityZones value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withEnableNodePublicIp
public ManagedClusterAgentPoolProfile withEnableNodePublicIp(Boolean enableNodePublicIp)
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.- Overrides:
withEnableNodePublicIpin classManagedClusterAgentPoolProfileProperties- Parameters:
enableNodePublicIp- the enableNodePublicIp value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withNodePublicIpPrefixId
public ManagedClusterAgentPoolProfile 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}.- Overrides:
withNodePublicIpPrefixIdin classManagedClusterAgentPoolProfileProperties- Parameters:
nodePublicIpPrefixId- the nodePublicIpPrefixId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withScaleSetPriority
public ManagedClusterAgentPoolProfile withScaleSetPriority(ScaleSetPriority scaleSetPriority)
Set the scaleSetPriority property: The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'.- Overrides:
withScaleSetPriorityin classManagedClusterAgentPoolProfileProperties- Parameters:
scaleSetPriority- the scaleSetPriority value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withScaleSetEvictionPolicy
public ManagedClusterAgentPoolProfile withScaleSetEvictionPolicy(ScaleSetEvictionPolicy scaleSetEvictionPolicy)
Set the scaleSetEvictionPolicy property: The Virtual Machine Scale Set eviction policy. This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'.- Overrides:
withScaleSetEvictionPolicyin classManagedClusterAgentPoolProfileProperties- Parameters:
scaleSetEvictionPolicy- the scaleSetEvictionPolicy value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withSpotMaxPrice
public ManagedClusterAgentPoolProfile withSpotMaxPrice(Float spotMaxPrice)
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).- Overrides:
withSpotMaxPricein classManagedClusterAgentPoolProfileProperties- Parameters:
spotMaxPrice- the spotMaxPrice value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withTags
public ManagedClusterAgentPoolProfile withTags(Map<String,String> tags)
Set the tags property: The tags to be persisted on the agent pool virtual machine scale set.- Overrides:
withTagsin classManagedClusterAgentPoolProfileProperties- Parameters:
tags- the tags value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withNodeLabels
public ManagedClusterAgentPoolProfile withNodeLabels(Map<String,String> nodeLabels)
Set the nodeLabels property: The node labels to be persisted across all nodes in agent pool.- Overrides:
withNodeLabelsin classManagedClusterAgentPoolProfileProperties- Parameters:
nodeLabels- the nodeLabels value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withNodeTaints
public ManagedClusterAgentPoolProfile withNodeTaints(List<String> nodeTaints)
Set the nodeTaints property: The taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.- Overrides:
withNodeTaintsin classManagedClusterAgentPoolProfileProperties- Parameters:
nodeTaints- the nodeTaints value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withProximityPlacementGroupId
public ManagedClusterAgentPoolProfile withProximityPlacementGroupId(String proximityPlacementGroupId)
Set the proximityPlacementGroupId property: The ID for Proximity Placement Group.- Overrides:
withProximityPlacementGroupIdin classManagedClusterAgentPoolProfileProperties- Parameters:
proximityPlacementGroupId- the proximityPlacementGroupId value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withKubeletConfig
public ManagedClusterAgentPoolProfile withKubeletConfig(KubeletConfig kubeletConfig)
Set the kubeletConfig property: Kubelet configurations of agent nodes. The Kubelet configuration on the agent pool nodes.- Overrides:
withKubeletConfigin classManagedClusterAgentPoolProfileProperties- Parameters:
kubeletConfig- the kubeletConfig value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withLinuxOSConfig
public ManagedClusterAgentPoolProfile withLinuxOSConfig(LinuxOSConfig linuxOSConfig)
Set the linuxOSConfig property: OS configurations of Linux agent nodes. The OS configuration of Linux agent nodes.- Overrides:
withLinuxOSConfigin classManagedClusterAgentPoolProfileProperties- Parameters:
linuxOSConfig- the linuxOSConfig value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withEnableEncryptionAtHost
public ManagedClusterAgentPoolProfile 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.- Overrides:
withEnableEncryptionAtHostin classManagedClusterAgentPoolProfileProperties- Parameters:
enableEncryptionAtHost- the enableEncryptionAtHost value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withEnableUltraSsd
public ManagedClusterAgentPoolProfile withEnableUltraSsd(Boolean enableUltraSsd)
Set the enableUltraSsd property: Whether to enable UltraSSD.- Overrides:
withEnableUltraSsdin classManagedClusterAgentPoolProfileProperties- Parameters:
enableUltraSsd- the enableUltraSsd value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withEnableFips
public ManagedClusterAgentPoolProfile withEnableFips(Boolean enableFips)
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.- Overrides:
withEnableFipsin classManagedClusterAgentPoolProfileProperties- Parameters:
enableFips- the enableFips value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withGpuInstanceProfile
public ManagedClusterAgentPoolProfile withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile)
Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.- Overrides:
withGpuInstanceProfilein classManagedClusterAgentPoolProfileProperties- Parameters:
gpuInstanceProfile- the gpuInstanceProfile value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
withCreationData
public ManagedClusterAgentPoolProfile 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.- Overrides:
withCreationDatain classManagedClusterAgentPoolProfileProperties- Parameters:
creationData- the creationData value to set.- Returns:
- the ManagedClusterAgentPoolProfileProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classManagedClusterAgentPoolProfileProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-