> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IP address sizing

> How many subnet, pod and Service addresses an e6data CloudPrem deployment on Azure uses at each cluster size, including during updates.

ReferenceApplies to: CloudPrem on Azure

Pods use an overlay, so only nodes take addresses from your subnet: an XS deployment peaked at 16 node addresses.

Cluster sizes differ only in executor count: XS 1, S 2, M 4, L 8, XL 16, XXL 32. Below, **N** is the executor count.

## Requirements

* AKS subnet /24 minimum, which fits an XXL cluster; e6data's own installs use half the VNet (a /17 of a /16). Nodes only.
* Kubernetes service range /24 or larger.
* Azure reserves 5 addresses in every subnet.

## Why updates need spare addresses

During a release update, e6data starts a full copy of a query cluster before it removes the old one. Peak address use is close to double the running cluster. Size for the peak, not the steady state.

## What uses addresses

With Azure CNI overlay, pods take no VNet addresses. Each node (VM) takes one address from the AKS subnet.

| Component | Node addresses |
| - | - |
| Cluster, once (2 system nodes; the operator, cert-manager, KEDA and VPA run on the system pool) | 2 (+2 if the system pool scales to 4) |
| Each workspace | 3 (latest layout; an older layout used 7) |
| Internal load balancer for the workspace | 1 |
| Each cluster | 1 + N in a measured XS deployment (planner and queue shared one VM; one VM per executor). Current Azure releases put the planner, queue and transpiler on separate VM sizes, so plan 3 + N. Sizes come from the release |
| Update copy of a cluster | 1 + N more, during the update |
| Short-lived duplicate executor VM at cluster start | 1 |
| AKS upgrade surge on AKS-managed pools (system) during node-image and Kubernetes upgrades | 1 or more per pool, per its surge setting |
| Spare engine node while a node is replaced | 1 |

Per-size total, one workspace and one cluster, with the update copy (estimates above XS):

| Size | XS | S | M | L | XL | XXL |
| - | - | - | - | - | - | - |
| Node addresses | 11 | 13 | 17 | 25 | 41 | 73 |

Measured: an XS deployment peaked at 16 node addresses (older 7-VM workspace layout).

Smallest subnets, after Azure's 5 reserved addresses (estimates):

| Subnet | Usable | Largest cluster size |
| - | - | - |
| /24 | 251 | XXL |
| /26 | 59 | XL |
| /27 | 27 | L (with the 3-VM workspace and the system pool held at 2 nodes) |

Private endpoints take addresses too. Put them in their own subnet, or add them to the count:

| Private endpoint | Addresses |
| - | - |
| Container registry | 2 |
| Storage `blob` | 1 |
| Storage `dfs` | 1 |
| Key Vault | 1 |

**Pod range (overlay).** Each node takes a /24 block from the pod range. A /16 (default `10.244.0.0/16`) holds 256 nodes. A /19 holds 32 nodes, which is enough up to an L cluster with its update copy. The pod range is never routed on your network.

## Service range

| Services | Azure |
| - | - |
| Cluster-wide | 13 |
| Per workspace | 6 |
| Per cluster | 2 |
| Extra during an update | 2 (same operator behaviour as on AWS) |
| One workspace and one cluster | 21 |

A /24 (254 Services) is the minimum. Larger ranges are fine.

## Steps

1. Create the AKS subnet: /24 or larger.
2. Choose a pod range with at least one /24 block per peak node. Keep the default /16 unless it clashes.
3. Choose a service range of /24 or larger.
4. Put private endpoints in a separate subnet, or add their addresses to the count.

## Cost impact

* Smaller subnets don't change the bill. Running out of addresses blocks updates and resumes.

## Preflight check

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
az network vnet subnet show -g <RG> --vnet-name <VNET> -n <AKS_SUBNET> \
  --query "{prefix:addressPrefix,used:length(ipConfigurations || \`[]\`)}"
```

Compare free addresses with the per-size tables above, including the update copy. If they're short, use a larger AKS subnet.

## Verify

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
kubectl get pods -A -o wide        # pod addresses are in the overlay pod range; node addresses are in the AKS subnet
```

Resume your largest cluster, run a query, and check the free-address count again. Repeat during a release update.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Nodes don't start during an update, AKS subnet at 0 free | AKS subnet too small for the extra update nodes | Use a larger AKS subnet |

## Limitations

* Address counts above XS, and the /26 and /27 subnet rows, are estimates. Leave headroom when you size close to them.

## See also

* [Network requirements](https://docs.e6data.com/platform/deploy/azure-cloudprem/network-requirements.md)
* [Change network settings](https://docs.e6data.com/platform/deploy/azure-cloudprem/change-network-settings.md)
* [Sizing and cost](https://docs.e6data.com/platform/deploy/azure-cloudprem/sizing-and-cost.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.