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

# Node pools

> How application node pools work, how a service chooses one, and how to change pools after an infrastructure is created.

Nodes in an infrastructure are grouped into **node pools**. The platform keeps its own pools, and you define **application pools** for your services. Keeping them apart means a busy application can't starve the ingress or the monitoring stack, and the other way round.

## Kinds of pool

| Pool | Who creates it | What runs there |
| - | - | - |
| System | Inframan, always | Platform components such as the ingress gateway and `istiod` |
| Monitoring | Inframan, on Google Cloud | The monitoring stack. On AWS it runs on the system pool. |
| Build | Inframan, when builds run in the cluster | Build jobs |
| Add-on | Inframan, one per add-on instance on Google Cloud | PostgreSQL or Redis. These pools use Spot nodes. |
| Application | You | Your services |

Each application pool is labelled and tainted `inframan.cloud/pool-type=<pool-name>:NoSchedule`, so only services that ask for the pool are scheduled on it.

## Choose a pool for a service

A service names its pool with `node_pool` in [`inframan.yaml`](https://inframan.mintlify.site/deploy/inframan-yaml):

```yaml inframan.yaml theme={null}
services:
  web:
    port: 8080
    node_pool: application-pool
```

| Application pools on the infrastructure | What you need to do |
| - | - |
| One | Nothing. Inframan fills in `node_pool` at deploy time. |
| Several | Set `node_pool` on every service. Inframan refuses to create an application whose `inframan.yaml` leaves it out, and a deploy without it fails with `NODE_POOL_ERROR`. |
| None | Add a pool first. A service has nowhere to run, so its release fails. |

A platform pool, such as `system-pool`, isn't accepted as a `node_pool`.

> [!TIP]
>
> To see the pools on an infrastructure, open it and select the **Node pools** tab.

## Change pools after creation

> [tab] AWS
>
> 1. Open the infrastructure and select **Node pools**.
> 2. Click **Change pools**, then add, edit or remove pools.
> 3. Click **Apply changes**.
>
> Karpenter replaces nodes to match the new pools, moving pods off old nodes as it goes. You can't remove a pool that a service still runs on: move the service to another pool with `node_pool` and deploy it first.

> [tab] Google Cloud
>
> Application pools are fixed when the infrastructure is created. To get different pools, create a new infrastructure.

Changing pools is only possible in the console. A connected AI assistant can't do it.

## Pods per node

Kubernetes limits how many pods each node can run.

* **Google Cloud:** every pod takes an IP address from the infrastructure's pod range, and GKE reserves twice the per-node pod limit for each node. Inframan works out the largest limit your pod range can support for your pools at their maximum size, and rounds it down to one GKE allows: 110, 64, 32, 16 or 8 pods per node. The system pool runs 110.
* **AWS:** every node runs up to 110 pods. The VPC CNI hands out addresses in prefixes, so the pod limit doesn't depend on the instance size.

## Spot and on-demand

Spot nodes cost a fraction of on-demand nodes, but your cloud provider can reclaim them at short notice. You choose per application pool: the **spot** switch on Google Cloud, **Capacity** on AWS. The console turns Spot on by default for new pools. On AWS, a node that's about to be reclaimed is drained first, so its pods move before it goes. See [Spot nodes](https://inframan.mintlify.site/optimize/spot.md).


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