Updated on 2024-11-01 GMT+08:00

Creating a Static EIPPool

A static EIPPool statically manages underlying EIP resources based on multiple unused EIPs that you specify and creates EIP objects in the CCI namespace. If EIPs in the EIPPool are used by NAT or ELB, the management fails.

The following example shows how to create a static EIPPool named eippool-demo2 and manage public IP addresses 10.246.173.254 and 10.246.172.3 in it.

Example:

apiVersion: crd.yangtse.cni/v1
kind: EIPPool                  # Type of the created object
metadata:                      # Metadata definition of the resource object
  name:eippool-demo2
spec:                          # EIPPool configuration
  eips:                        # Public IP addresses to be managed
  - 10.246.173.254  
  - 10.246.172.3