Share via


PodIpAllocationMode Class

public final class PodIpAllocationMode
extends ExpandableStringEnum<PodIpAllocationMode>

Pod IP Allocation Mode. The IP allocation mode for pods in the agent pool. Must be used with podSubnetId. The default is 'DynamicIndividual'.

Field Summary

Modifier and Type Field and Description
static final PodIpAllocationMode DYNAMIC_INDIVIDUAL

Each node gets allocated with a non-contiguous list of IP addresses assignable to pods.

static final PodIpAllocationMode STATIC_BLOCK

Each node is statically allocated CIDR block(s) of size /28 = 16 IPs per block to satisfy the maxPods per node.

Constructor Summary

Constructor Description
PodIpAllocationMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PodIpAllocationMode value.

Method Summary

Modifier and Type Method and Description
static PodIpAllocationMode fromString(String name)

Creates or finds a PodIpAllocationMode from its string representation.

static Collection<PodIpAllocationMode> values()

Gets known PodIpAllocationMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DYNAMIC_INDIVIDUAL

public static final PodIpAllocationMode DYNAMIC_INDIVIDUAL

Each node gets allocated with a non-contiguous list of IP addresses assignable to pods. This is better for maximizing a small to medium subnet of size /16 or smaller. The Azure CNI cluster with dynamic IP allocation defaults to this mode if the customer does not explicitly specify a podIPAllocationMode.

STATIC_BLOCK

public static final PodIpAllocationMode STATIC_BLOCK

Each node is statically allocated CIDR block(s) of size /28 = 16 IPs per block to satisfy the maxPods per node. Number of CIDR blocks >= (maxPods / 16). The block, rather than a single IP, counts against the Azure Vnet Private IP limit of 65K. Therefore block mode is suitable for running larger workloads with more than the current limit of 65K pods in a cluster. This mode is better suited to scale with larger subnets of /15 or bigger.

Constructor Details

PodIpAllocationMode

@Deprecated
public PodIpAllocationMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PodIpAllocationMode value.

Method Details

fromString

public static PodIpAllocationMode fromString(String name)

Creates or finds a PodIpAllocationMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PodIpAllocationMode.

values

public static Collection<PodIpAllocationMode> values()

Gets known PodIpAllocationMode values.

Returns:

known PodIpAllocationMode values.

Applies to