---
title: Node Pools
page-beta-text: This is a beta feature. Beta features are available for testing and feedback. They are not supported by Redpanda and should not be used in production environments.
latest-redpanda-tag: v26.1.14
latest-console-tag: v3.14.0
latest-operator-version: v26.1.14
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "false"
page-eol-date: March 31, 2027
latest-connect-version: 4.118.0
docname: kubernetes/k-node-pools
page-component-name: streaming
page-version: "26.1"
page-component-version: "26.1"
page-component-title: Streaming
page-relative-src-path: kubernetes/k-node-pools.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/26.1/modules/manage/pages/kubernetes/k-node-pools.adoc
description: Use the NodePool custom resource to manage groups of Redpanda brokers independently for flexible scaling, migration, and heterogeneous hardware configurations.
# Beta release status
page-beta: "true"
personas: platform_operator, platform_engineer
learning-objective-1: Describe what NodePool CRs are and when to use them
learning-objective-2: Enable the NodePool CRD on the Redpanda Operator
learning-objective-3: Create a NodePool to manage a group of brokers
page-git-created-date: "2026-04-14"
page-git-modified-date: "2026-11-17"
page-generated-content: none
support-status: supported
release-status: beta - This is a beta feature. Beta features are available for testing and feedback. They are not supported by Redpanda and should not be used in production environments.
---

# Node Pools

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [streaming-full.txt](https://docs.redpanda.com/streaming-full.txt)

<!-- Source: https://docs.redpanda.com/streaming/26.1/manage/kubernetes/k-node-pools.md -->

The NodePool custom resource (CR) lets you manage groups of Redpanda brokers as independent units within a single cluster. Each NodePool creates its own StatefulSet, giving you fine-grained control over broker placement, resources, and lifecycle. This is especially useful for blue/green migrations, vertical scaling, and running brokers on different hardware configurations.

After reading this page, you will be able to:

-   Describe what NodePool CRs are and when to use them

-   Enable the NodePool CRD on the Redpanda Operator

-   Create a NodePool to manage a group of brokers


> ⚠️ **CAUTION**
>
> The NodePool CRD is a beta feature. You must enable experimental CRDs and the `--enable-v2-nodepools` operator flag to use it.

## How NodePools work

A NodePool is a Kubernetes custom resource (`cluster.redpanda.com/v1alpha2`, kind: `NodePool`) that defines a group of Redpanda brokers with shared configuration. Each NodePool:

-   Creates and manages its own StatefulSet.

-   Names Pods after the pool. For example, a NodePool named `pool1` with three replicas creates Pods `redpanda-pool1-0`, `redpanda-pool1-1`, and `redpanda-pool1-2`.

-   Can target specific Kubernetes nodes using `nodeSelector` and `tolerations`.

-   Specifies its own replica count independent of other pools.


When you use NodePools, the Redpanda CR delegates broker management to the NodePool CRs. When NodePools manage every broker, set `statefulset.replicas` to `0` in the Redpanda CR so that NodePool CRs control the broker count. On an existing cluster, create the NodePool and wait for its brokers to join the cluster first. See [Migrate an existing cluster to NodePools](#migrate-to-nodepools).

## When to use NodePools

NodePools are useful when you need to:

-   **Migrate brokers to new nodes**: Perform blue/green migrations by creating a new NodePool on the target node pool, then scaling down the old NodePool. The Redpanda Operator handles decommissioning automatically. See [Migrate Node Pools](https://docs.redpanda.com/streaming/26.1/upgrade/k-migrate-node-pools/).

-   **Scale vertically**: Move brokers to nodes with more CPU, memory, or storage without manual decommission and re-provision steps.

-   **Upgrade Kubernetes**: Migrate to a new Kubernetes node pool running a newer version while maintaining cluster availability.


### Always scale up before scaling down

> ⚠️ **WARNING**
>
> Never create and delete NodePools simultaneously. Due to the eventual consistency model of Kubernetes, simultaneous creation and deletion of NodePools could result in a cluster that is deleted and recreated. Always ensure the new NodePool is fully stable before removing the old one.

When migrating between NodePools, you must always scale up the new NodePool first and verify that all new brokers are healthy before scaling down or deleting the old NodePool. There are two supported approaches:

-   **Big bang**: Create all replicas in the new NodePool, wait for the cluster to stabilize with 2x the usual broker count, then delete the old NodePool. This is the approach described in [Migrate Node Pools](https://docs.redpanda.com/streaming/26.1/upgrade/k-migrate-node-pools/).

-   **Incremental**: Scale the new NodePool up by one broker, wait for it to join and stabilize, then scale the old NodePool down by one broker. Repeat until all brokers have migrated. This approach uses fewer temporary resources but takes longer.


With either approach, always confirm stability before removing any broker. Run `rpk cluster health` and verify zero leaderless and zero under-replicated partitions before each scale-down step.

## Prerequisites

-   Redpanda Operator v26.1.2 or later.

-   The Operator must be deployed with experimental CRDs and the NodePool flag enabled. See [Enable NodePools](#enable-nodepools).


## Enable NodePools

To enable the NodePool CRD, configure the Redpanda Operator Helm values with experimental CRDs and the `--enable-v2-nodepools` flag:

`operator-values.yaml`

```yaml
image:
  tag: v26.1.2
crds:
  enabled: true
  experimental: true
additionalCmdFlags:
  - "--enable-v2-nodepools"
```

Deploy or upgrade the Operator with these values:

```bash
helm upgrade --install redpanda-controller redpanda/operator \
  --namespace <namespace> --create-namespace \
  --values operator-values.yaml
```

Next, configure the Redpanda CR to delegate broker management to NodePools by setting `statefulset.replicas` to `0`.

> ⚠️ **WARNING**
>
> On an existing cluster, don’t set `replicas` to `0` yet. Create the NodePool and wait for its brokers to join the cluster first, or you lose all the data in the existing cluster. See [Migrate an existing cluster to NodePools](#migrate-to-nodepools).

`redpanda-cr.yaml`

```yaml
apiVersion: cluster.redpanda.com/v1alpha2
kind: Redpanda
metadata:
  name: redpanda
  namespace: <namespace>
spec:
  clusterSpec:
    image:
      tag: v26.1.2
    statefulset:
      replicas: 0 (1)
      budget:
        maxUnavailable: 1
    resources:
      cpu:
        cores: 1
      memory:
        container:
          max: 2Gi
    storage:
      persistentVolume:
        enabled: true
        size: 5Gi
        storageClass: premium-rwo
```

1. Setting `replicas` to `0` delegates broker management to NodePool CRs.

## Create a NodePool

Define a NodePool CR that specifies the number of replicas and the target Kubernetes nodes:

`nodepool-pool1.yaml`

```yaml
apiVersion: cluster.redpanda.com/v1alpha2
kind: NodePool
metadata:
  name: pool1
  namespace: <namespace>
spec:
  clusterRef:
    name: redpanda
  replicas: 3
  podTemplate:
    spec:
      nodeSelector:
        nodetype: redpanda-pool1 (1)
      tolerations:
        - key: redpanda-pool1 (2)
          operator: Equal
          value: "true"
          effect: NoSchedule
```

1. Targets Kubernetes nodes labeled `nodetype: redpanda-pool1`.
2. Allows scheduling on nodes tainted with `redpanda-pool1=true:NoSchedule`.

Apply the NodePool:

```bash
kubectl apply -f nodepool-pool1.yaml
```

Verify that the brokers are running:

```bash
kubectl get pods -n <namespace> -l app.kubernetes.io/name=redpanda
```

## Control node placement with nodeSelector and tolerations

Use `nodeSelector` and `tolerations` together to ensure that each NodePool’s brokers run only on specific Kubernetes nodes. This guarantees uniform hardware for all brokers in a NodePool and prevents other workloads from consuming resources on those nodes.

### How it works

**`nodeSelector`**

Constrains Pods to Kubernetes nodes with a matching label. The NodePool’s brokers are scheduled **only** on nodes that have the specified label.

**`tolerations`**

Allow Pods to be scheduled on nodes that have a matching taint. When you taint nodes with `NoSchedule`, only Pods with a matching toleration can run there.

Together, these fields provide two-way isolation:

-   **NodePool brokers can only run on the designated nodes** (enforced by `nodeSelector`).

-   **No other workloads can run on those nodes** (enforced by the `NoSchedule` taint).


This is especially important when you need to ensure that all brokers in a NodePool run on identical hardware, such as the same machine type in a cloud provider’s Kubernetes node pool.

### Label and taint your Kubernetes nodes

Before creating a NodePool, label and taint the target Kubernetes nodes. Each cloud provider handles this differently when you create a node pool:

#### GKE

```bash
gcloud container node-pools create redpanda-pool1 \
  --cluster <cluster-name> \
  --machine-type e2-standard-8 \
  --node-labels nodetype=redpanda-pool1 \
  --node-taints redpanda-pool1=true:NoSchedule
```

#### EKS

```bash
eksctl create nodegroup \
  --cluster <cluster-name> \
  --name redpanda-pool1 \
  --node-type m5.2xlarge \
  --node-labels nodetype=redpanda-pool1 \
  --node-taints redpanda-pool1=true:NoSchedule
```

#### AKS

```bash
az aks nodepool add \
  --resource-group <resource-group> \
  --cluster-name <cluster-name> \
  --name rppool1 \
  --node-vm-size Standard_D8s_v3 \
  --labels nodetype=redpanda-pool1 \
  --node-taints redpanda-pool1=true:NoSchedule
```

For existing nodes, you can apply labels and taints manually:

```bash
kubectl label nodes <node-name> nodetype=redpanda-pool1
kubectl taint nodes <node-name> redpanda-pool1=true:NoSchedule
```

### Configure the NodePool CR

Reference the labels and taints in your NodePool CR:

```yaml
apiVersion: cluster.redpanda.com/v1alpha2
kind: NodePool
metadata:
  name: pool1
  namespace: <namespace>
spec:
  clusterRef:
    name: redpanda
  replicas: 3
  podTemplate:
    spec:
      nodeSelector:
        nodetype: redpanda-pool1 (1)
      tolerations:
        - key: redpanda-pool1 (2)
          operator: Equal
          value: "true"
          effect: NoSchedule
```

1. Must match the label applied to the target Kubernetes nodes.
2. Must match the taint key and effect on the target Kubernetes nodes.

### Verify node placement

After applying the NodePool, confirm that all Pods are running on the expected nodes:

```bash
kubectl get pods -n <namespace> -o wide -l app.kubernetes.io/name=redpanda
```

The `NODE` column should show only nodes from the target Kubernetes node pool.

## Migrate an existing cluster to NodePools

If you have an existing Redpanda cluster managed by the Redpanda Operator without NodePools, you must migrate it to use a NodePool CR before you can perform [NodePool-based migrations](https://docs.redpanda.com/streaming/26.1/upgrade/k-migrate-node-pools/). The move has no downtime.

> 📝 **NOTE**
>
> This migration is a prerequisite for using the NodePool CRD to upgrade or migrate node pools. Complete this process before attempting a blue/green NodePool migration.

The NodePool doesn’t take over the existing brokers. It creates new brokers that join the cluster. Then you remove the existing brokers, and the operator decommissions them and moves their partitions to the NodePool’s brokers. For a while, the cluster runs twice the usual number of brokers, so your Kubernetes nodes need room for them.

> ⚠️ **WARNING**
>
> Create the NodePool and wait for its brokers to join the cluster before you set `statefulset.replicas` to `0`. If you set `replicas` to `0` first, the NodePool’s brokers start a new, empty cluster, and the operator removes the existing brokers. All data in the existing cluster is lost.

### Verify cluster health

Confirm the existing cluster is healthy before making changes:

```bash
rpk cluster health
```

```bash
rpk cluster info
```

Note the number of brokers and the cluster UUID. You need the number of brokers for the NodePool’s `replicas` field, and the UUID to confirm that the NodePool’s brokers join this cluster.

### Enable NodePool support on the Operator

If you have not already done so, upgrade the Redpanda Operator with experimental CRDs and the NodePool flag enabled. Follow the steps in [Enable NodePools](#enable-nodepools), but stop before the step that sets `statefulset.replicas` to `0`.

### Create a NodePool

Create a NodePool with the same number of brokers as your current cluster. Use a node selector and tolerations for the nodes that the NodePool’s brokers should run on:

`nodepool-pool1.yaml`

```yaml
apiVersion: cluster.redpanda.com/v1alpha2
kind: NodePool
metadata:
  name: pool1
  namespace: <namespace>
spec:
  clusterRef:
    name: redpanda
  replicas: 3 (1)
  podTemplate:
    spec:
      nodeSelector:
        nodetype: redpanda-pool1 (2)
      tolerations:
        - key: redpanda-pool1 (3)
          operator: Equal
          value: "true"
          effect: NoSchedule
```

1. Set to the number of brokers in your existing cluster.
2. Replace with the label on the Kubernetes nodes for the NodePool.
3. Replace with the taint key on the Kubernetes nodes for the NodePool.

Apply the NodePool:

```bash
kubectl apply -f nodepool-pool1.yaml
```

### Wait for the NodePool’s brokers to join

Wait until all brokers are healthy:

```bash
rpk cluster health
```

Expected output (6 brokers)

```text
CLUSTER HEALTH OVERVIEW
=======================
Healthy:                          true
Unhealthy reasons:                []
Controller ID:                    0
All nodes:                        [0 1 2 3 4 5]
Nodes down:                       []
Nodes in recovery mode:           []
Nodes with high disk usage:       []
Leaderless partitions (0):        []
Under-replicated partitions (0):  []
Cluster UUID:                     8d2e5eac-d844-4563-8e1d-01696f91b245
```

The cluster UUID is the same as before, and the cluster has twice the usual number of brokers. Don’t continue until the cluster reports healthy with all brokers online.

### Remove the existing brokers

Patch the Redpanda CR to set `statefulset.replicas` to `0`:

```bash
cat <<EOF > patch-replicas.yaml
spec:
  clusterSpec:
    statefulset:
      replicas: 0
EOF
kubectl patch redpanda redpanda -n <namespace> --type merge --patch-file patch-replicas.yaml
```

The operator decommissions the existing brokers one at a time and moves their partitions to the NodePool’s brokers. Monitor the progress:

```bash
rpk cluster info -b --detailed
```

Wait until only the NodePool’s brokers remain.

### Verify the migration

Confirm the NodePool is deployed:

```bash
kubectl get nodepool -n <namespace>
```

Verify the brokers are healthy:

```bash
rpk cluster health
```

```bash
rpk cluster info
```

The cluster has the same UUID and the same number of healthy brokers as before. The cluster is now managed by the NodePool CR and ready for [NodePool-based migrations](https://docs.redpanda.com/streaming/26.1/upgrade/k-migrate-node-pools/).

The operator keeps the PersistentVolumeClaims (PVCs) of removed brokers, so that it never deletes data by mistake. After you verify the migration, delete them:

```bash
kubectl delete pvc datadir-redpanda-0 datadir-redpanda-1 datadir-redpanda-2 -n <namespace>
```

## Remove NodePools and return to operator-managed replicas

If you no longer need NodePools, you can migrate brokers back to the default StatefulSet managed by the Redpanda CR. This process restores the original replica count in the Redpanda CR, waits for the new brokers to stabilize, then removes the NodePool CR. The operator decommissions the NodePool brokers one by one.

### Restore replicas in the Redpanda CR

Set `statefulset.replicas` in the Redpanda CR back to the desired broker count. For example, if your NodePool has 3 replicas, set the Redpanda CR to 3:

```bash
cat <<EOF > patch-replicas.yaml
spec:
  clusterSpec:
    statefulset:
      replicas: 3
EOF
kubectl patch redpanda redpanda -n <namespace> --type merge --patch-file patch-replicas.yaml
```

The operator creates new brokers in the default StatefulSet. The cluster temporarily runs 2x the usual number of brokers (for example, 6 brokers: 3 from the NodePool and 3 from the Redpanda CR).

### Wait for all brokers to stabilize

Wait until all brokers are healthy and data is fully replicated across the cluster:

```bash
rpk cluster health
```

```bash
rpk cluster info
```

Expected output (6 brokers)

```
CLUSTER HEALTH OVERVIEW
=======================
Healthy:                          true
Unhealthy reasons:                []
Controller ID:                    0
All nodes:                        [0 1 2 3 4 5]
Nodes down:                       []
Leaderless partitions (0):        []
Under-replicated partitions (0):  []
```

Do not proceed until the cluster reports as healthy with all brokers online.

### Delete the NodePool CR

Delete the NodePool CR. The operator decommissions the NodePool brokers one by one, draining partitions to the Redpanda CR-managed brokers:

```bash
kubectl delete nodepool pool1 -n <namespace>
```

Monitor the decommission progress:

```bash
rpk redpanda admin brokers list
```

Wait until only the Redpanda CR-managed brokers remain.

The operator keeps the NodePool’s PVCs. After you verify the cluster, delete them:

```bash
kubectl delete pvc datadir-redpanda-pool1-0 datadir-redpanda-pool1-1 datadir-redpanda-pool1-2 -n <namespace>
```

### Verify the cluster

Confirm that the cluster is healthy and running only the expected brokers:

```bash
rpk cluster health
```

```bash
rpk cluster info
```

The cluster is now fully managed by the Redpanda CR without NodePools.

## Cluster maintenance

For ongoing management of brokers in your cluster, see:

-   [Cluster Maintenance](https://docs.redpanda.com/streaming/26.1/manage/kubernetes/lifecycle/) — Overview of broker lifecycle operations.

-   [Decommission Brokers](https://docs.redpanda.com/streaming/26.1/manage/kubernetes/k-decommission-brokers/) — Safely remove brokers from the cluster.

-   [Recovery Mode](https://docs.redpanda.com/streaming/26.1/manage/kubernetes/tiered-storage/k-recovery-mode/) — Start Redpanda with limited functionality to repair a failed cluster.

-   [Rolling Restart](https://docs.redpanda.com/streaming/26.1/manage/kubernetes/k-rolling-restart/) — Restart brokers one at a time during maintenance.


## Suggested reading

-   [Migrate Node Pools](https://docs.redpanda.com/streaming/26.1/upgrade/k-migrate-node-pools/) — Blue/green migration using the NodePool CRD.

-   [Migrate Node Pools Manually](https://docs.redpanda.com/streaming/26.1/upgrade/k-migrate-node-pools-manually/) — Manual migration without the NodePool CRD.

-   [Custom Resource Definition (CRD) Reference](https://docs.redpanda.com/streaming/26.1/reference/k-crd/)


## Suggested labs

-   [Redpanda Iceberg Docker Compose Example](https://docs.redpanda.com/labs/docker-compose/iceberg/)
-   [Enable Unified Identity with Azure Entra ID for Redpanda and Redpanda Console](https://docs.redpanda.com/labs/docker-compose/oidc/)
-   [Owl Shop Example Application in Docker](https://docs.redpanda.com/labs/docker-compose/owl-shop/)
-   [Migrate Data with Redpanda Migrator](https://docs.redpanda.com/labs/docker-compose/redpanda-migrator/)
-   [Start a Single Redpanda Broker with Redpanda Console in Docker](https://docs.redpanda.com/labs/docker-compose/single-broker/)
-   [Start a Cluster of Redpanda Brokers with Redpanda Console in Docker](https://docs.redpanda.com/labs/docker-compose/three-brokers/)
-   [Iceberg Streaming on Kubernetes with Redpanda, RustFS, and Spark](https://docs.redpanda.com/labs/kubernetes/iceberg/)

See more

[Search all labs](https://docs.redpanda.com/labs)