Share via


ManagedClusterAgentPoolProfile Class

Definition

Profile for the container service agent pool.

public class ManagedClusterAgentPoolProfile : Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAgentPoolProfileProperties
type ManagedClusterAgentPoolProfile = class
    inherit ManagedClusterAgentPoolProfileProperties
Public Class ManagedClusterAgentPoolProfile
Inherits ManagedClusterAgentPoolProfileProperties
Inheritance
ManagedClusterAgentPoolProfile

Constructors

ManagedClusterAgentPoolProfile()

Initializes a new instance of the ManagedClusterAgentPoolProfile class.

ManagedClusterAgentPoolProfile(String, Nullable<Int32>, String, Nullable<Int32>, String, String, String, String, String, Nullable<Int32>, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, String, String, String, String, String, String, AgentPoolUpgradeSettings, String, PowerState, IList<String>, Nullable<Boolean>, String, String, String, Nullable<Double>, IDictionary<String,String>, IDictionary<String,String>, IList<String>, String, KubeletConfig, LinuxOSConfig, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, CreationData, String)

Initializes a new instance of the ManagedClusterAgentPoolProfile class.

Properties

AvailabilityZones

Gets or sets the list of Availability zones to use for nodes. This can only be specified if the AgentPoolType property is 'VirtualMachineScaleSets'.

(Inherited from ManagedClusterAgentPoolProfileProperties)
Count

Gets or sets 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.

(Inherited from ManagedClusterAgentPoolProfileProperties)
CreationData

Gets or sets creationData to be used to specify the source Snapshot ID if the node pool will be created/upgraded using a snapshot.

(Inherited from ManagedClusterAgentPoolProfileProperties)
CurrentOrchestratorVersion

Gets 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.

(Inherited from ManagedClusterAgentPoolProfileProperties)
EnableAutoScaling

Gets or sets whether to enable auto-scaler

(Inherited from ManagedClusterAgentPoolProfileProperties)
EnableEncryptionAtHost

Gets or sets 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

(Inherited from ManagedClusterAgentPoolProfileProperties)
EnableFips

Gets or sets see Add a FIPS-enabled node pool for more details.

(Inherited from ManagedClusterAgentPoolProfileProperties)
EnableNodePublicIP

Gets or sets 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. The default is false.

(Inherited from ManagedClusterAgentPoolProfileProperties)
EnableUltraSsd

Gets or sets whether to enable UltraSSD

(Inherited from ManagedClusterAgentPoolProfileProperties)
GpuInstanceProfile

Gets or sets gPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. Possible values include: 'MIG1g', 'MIG2g', 'MIG3g', 'MIG4g', 'MIG7g'

(Inherited from ManagedClusterAgentPoolProfileProperties)
HostGroupId

Gets or sets this is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}. For more information see Azure dedicated hosts.

(Inherited from ManagedClusterAgentPoolProfileProperties)
KubeletConfig

Gets or sets the Kubelet configuration on the agent pool nodes.

(Inherited from ManagedClusterAgentPoolProfileProperties)
KubeletDiskType

Gets or sets determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. Possible values include: 'OS', 'Temporary'

(Inherited from ManagedClusterAgentPoolProfileProperties)
LinuxOSConfig

Gets or sets the OS configuration of Linux agent nodes.

(Inherited from ManagedClusterAgentPoolProfileProperties)
MaxCount

Gets or sets the maximum number of nodes for auto-scaling

(Inherited from ManagedClusterAgentPoolProfileProperties)
MaxPods

Gets or sets the maximum number of pods that can run on a node.

(Inherited from ManagedClusterAgentPoolProfileProperties)
MinCount

Gets or sets the minimum number of nodes for auto-scaling

(Inherited from ManagedClusterAgentPoolProfileProperties)
Mode

Gets or sets 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 Possible values include: 'System', 'User'

(Inherited from ManagedClusterAgentPoolProfileProperties)
Name

Gets or sets windows agent pool names must be 6 characters or less.

NodeImageVersion

Gets the version of node image

(Inherited from ManagedClusterAgentPoolProfileProperties)
NodeLabels

Gets or sets the node labels to be persisted across all nodes in agent pool.

(Inherited from ManagedClusterAgentPoolProfileProperties)
NodePublicIPPrefixId

Gets or sets this is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}

(Inherited from ManagedClusterAgentPoolProfileProperties)
NodeTaints

Gets or sets the taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.

(Inherited from ManagedClusterAgentPoolProfileProperties)
OrchestratorVersion

Gets or sets 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.

(Inherited from ManagedClusterAgentPoolProfileProperties)
OSDiskSizeGb

Gets or sets 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.

(Inherited from ManagedClusterAgentPoolProfileProperties)
OSDiskType

Gets or sets 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. Possible values include: 'Managed', 'Ephemeral'

(Inherited from ManagedClusterAgentPoolProfileProperties)
OSSku

Gets or sets 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. Possible values include: 'Ubuntu', 'AzureLinux', 'CBLMariner', 'Windows2019', 'Windows2022'

(Inherited from ManagedClusterAgentPoolProfileProperties)
OSType

Gets or sets the operating system type. The default is Linux. Possible values include: 'Linux', 'Windows'

(Inherited from ManagedClusterAgentPoolProfileProperties)
PodSubnetId

Gets or sets 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}

(Inherited from ManagedClusterAgentPoolProfileProperties)
PowerState

Gets or sets 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

(Inherited from ManagedClusterAgentPoolProfileProperties)
ProvisioningState

Gets the current deployment or provisioning state.

(Inherited from ManagedClusterAgentPoolProfileProperties)
ProximityPlacementGroupId

Gets or sets the ID for Proximity Placement Group.

(Inherited from ManagedClusterAgentPoolProfileProperties)
ScaleDownMode

Gets or sets this also effects the cluster autoscaler behavior. If not specified, it defaults to Delete. Possible values include: 'Delete', 'Deallocate'

(Inherited from ManagedClusterAgentPoolProfileProperties)
ScaleSetEvictionPolicy

Gets or sets this cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'. Possible values include: 'Delete', 'Deallocate'

(Inherited from ManagedClusterAgentPoolProfileProperties)
ScaleSetPriority

Gets or sets the Virtual Machine Scale Set priority. If not specified, the default is 'Regular'. Possible values include: 'Spot', 'Regular'

(Inherited from ManagedClusterAgentPoolProfileProperties)
SpotMaxPrice

Gets or sets 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

(Inherited from ManagedClusterAgentPoolProfileProperties)
Tags

Gets or sets the tags to be persisted on the agent pool virtual machine scale set.

(Inherited from ManagedClusterAgentPoolProfileProperties)
Type

Gets or sets the type of Agent Pool. Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet'

(Inherited from ManagedClusterAgentPoolProfileProperties)
UpgradeSettings

Gets or sets settings for upgrading the agentpool

(Inherited from ManagedClusterAgentPoolProfileProperties)
VMSize

Gets or sets 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

(Inherited from ManagedClusterAgentPoolProfileProperties)
VnetSubnetId

Gets or sets 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}

(Inherited from ManagedClusterAgentPoolProfileProperties)
WorkloadRuntime

Gets or sets determines the type of workload a node can run. Possible values include: 'OCIContainer', 'WasmWasi'

(Inherited from ManagedClusterAgentPoolProfileProperties)

Methods

Validate()

Validate the object.

Applies to