Creating an IP Pool

You can create IP pools to allocate pools of public IPs to the worker nodes of your clusters.

Creating an IP Pool

To create an IP pool, you must first define it using a Kubernetes manifest with the required annotations. You can also mark an IP pool as persistent, meaning it will not be automatically deleted when a cluster is removed. This is useful for reusing the same IPs across cluster lifecycles (e.g., to preserve DNS records or database connections).

For more information about manifests, see Node Pool Manifest Reference.

The following example creates a persistent IP pool of 8 addresses using a manifest:

Manifest Sample
---
apiVersion: oks.dev/v1beta
kind: IPPool
metadata:
  name: example-ip-pool
spec:
  numAddresses: 8
  persistent: true

This manifest contains two parameters that define the behavior of the IP pool:

  • numAddresses: Specifies the number of IPs to allocate.

  • persistent: If true, prevents the auto-deletion of IP pools when a cluster is deleted.

Related Pages