Creating an IP Pool

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

Creating an IP Pool

To create an IP pool, you need to attach the required annotations to your manifests. For more information about manifests, see Node Pool Manifest Reference.

In the following example, we will create an IP pool of 8 IP addresses by using a manifest:

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

The numAddresses parameter specifies the number of IP addresses that you want to allocate.

The IP addresses are allocated in batches of 5 addresses:

Request sample
$ kubectl get ippools -o wide -w
Response sample
NAME              DECLARED ADDRESSES   ALLOCATED ADDRESSES   LINKED ADDRESSES   UNLINKED ADDRESSES   LAST ERROR
example-ip-pool   8                    5                     0                  5                    None
example-ip-pool   8                    5                     0                  5                    None
example-ip-pool   8                    8                     0                  8                    None

Related Pages