ContainerServiceAgentPoolData Class

Definition

A class representing the ContainerServiceAgentPool data model. Agent Pool.

public class ContainerServiceAgentPoolData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ContainerService.ContainerServiceAgentPoolData>
public class ContainerServiceAgentPoolData : Azure.ResourceManager.Models.ResourceData
type ContainerServiceAgentPoolData = class
    inherit ResourceData
    interface IJsonModel<ContainerServiceAgentPoolData>
    interface IPersistableModel<ContainerServiceAgentPoolData>
type ContainerServiceAgentPoolData = class
    inherit ResourceData
Public Class ContainerServiceAgentPoolData
Inherits ResourceData
Implements IJsonModel(Of ContainerServiceAgentPoolData), IPersistableModel(Of ContainerServiceAgentPoolData)
Public Class ContainerServiceAgentPoolData
Inherits ResourceData
Inheritance
ContainerServiceAgentPoolData
Implements

Constructors

ContainerServiceAgentPoolData()

Initializes a new instance of ContainerServiceAgentPoolData.

Properties

AvailabilityZones

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

CapacityReservationGroupId

AKS will associate the specified agent pool with the Capacity Reservation Group.

Count

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.

CreationDataSourceResourceId

This is the ARM ID of the source object to be used to create the target object.

CurrentOrchestratorVersion

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.

DisableOutboundNat

The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled.

EnableAutoScaling

Whether to enable auto-scaler.

EnableCustomCATrust

When set to true, AKS adds a label to the node indicating that the feature is enabled and deploys a daemonset along with host services to sync custom certificate authorities from user-provided list of base64 encoded certificates into node trust stores. Defaults to false.

EnableEncryptionAtHost

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.

EnableFips

See Add a FIPS-enabled node pool for more details.

EnableNodePublicIP

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.

EnableUltraSsd

Whether to enable UltraSSD.

GpuInstanceProfile

GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.

HostGroupId

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

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
KubeletConfig

The Kubelet configuration on the agent pool nodes.

KubeletDiskType

Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage.

LinuxOSConfig

The OS configuration of Linux agent nodes.

MaxCount

The maximum number of nodes for auto-scaling.

MaxPods

The maximum number of pods that can run on a node.

MessageOfTheDay

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

MinCount

The minimum number of nodes for auto-scaling.

Mode

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.

Name

The name of the resource.

(Inherited from ResourceData)
NetworkProfile

Network-related settings of an agent pool.

NodeImageVersion

The version of node image.

NodeLabels

The node labels to be persisted across all nodes in agent pool.

NodePublicIPPrefixId

This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}.

NodeTaints

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

OrchestratorVersion

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.

OSDiskSizeInGB

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.

OSDiskType

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.

OSSku

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.

OSType

The operating system type. The default is Linux.

PodSubnetId

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

PowerStateCode

Tells whether the cluster is Running or Stopped.

ProvisioningState

The current deployment or provisioning state.

ProximityPlacementGroupId

The ID for Proximity Placement Group.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
ScaleDownMode

This also effects the cluster autoscaler behavior. If not specified, it defaults to Delete.

ScaleSetEvictionPolicy

This cannot be specified unless the scaleSetPriority is 'Spot'. If not specified, the default is 'Delete'.

ScaleSetPriority

The Virtual Machine Scale Set priority. If not specified, the default is 'Regular'.

SpotMaxPrice

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.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)
Tags

The tags to be persisted on the agent pool virtual machine scale set.

TypePropertiesType

The type of Agent Pool.

UpgradeSettings

Settings for upgrading the agentpool.

VmSize

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.

VnetSubnetId

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

WorkloadRuntime

Determines the type of workload a node can run.

Explicit Interface Implementations

IJsonModel<ContainerServiceAgentPoolData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ContainerServiceAgentPoolData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ContainerServiceAgentPoolData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ContainerServiceAgentPoolData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ContainerServiceAgentPoolData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to