Help Center/ Cloud Container Engine/ User Guide/ Node Pools/ Automatically Assigning an EIP to Each Node in a Node Pool
Updated on 2025-07-17 GMT+08:00

Automatically Assigning an EIP to Each Node in a Node Pool

To automate EIP binding, enable the automatic EIP binding option when creating a node pool. This will automatically assign an EIP to each new node in the cluster for Internet access.

EIP Billing and Lifecycle

When an EIP is automatically assigned from a node pool, its lifecycle matches the node to which the EIP is bound by default. If you bind a non-yearly/monthly-billed EIP to a node (ECS), CCE will configure a release policy for the EIP with the node. This means the EIP will be automatically deleted when the node is deleted. For details, see Table 1. To prevent automatic deletion of an EIP bound to a node when the node is deleted, modify the EIP release policy on the ECS console. For details, see 4.

Table 1 Comparison between billing modes and EIP lifecycle

Node Billing Mode

EIP Bandwidth Billed By

EIP Billing and Lifecycle

Pay-per-use

Traffic

The EIP is billed on a pay-per-use basis and released with the node by default.

Bandwidth

The EIP is billed on a pay-per-use basis and released with the node by default.

Yearly/Monthly

Traffic

The EIP is billed on a pay-per-use basis and released with the node by default.

Bandwidth

The EIP is billed on a yearly/monthly basis and is not automatically released with the node by default.

Prerequisites

  • A cluster of v1.21.11-r0, v1.23.9-r0, v1.25.4-r0, or later is available.
  • Ensure the target node pool is neither a BMS/remote edge pool nor billed on a yearly/monthly basis. Otherwise, EIPs cannot be automatically assigned.

Procedure

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Nodes. Then, click Create Node Pool in the upper right corner of the page. Configure EIP in the Network Settings area.

    The default value of EIP is Do not use. If you select Auto assign, configure the following parameters:

    • EIP Type
      • Dynamic BGP: In a network using dynamic BGP, changes can be quickly addressed by adjusting configurations via the routing protocol, ensuring stability and optimal performance.
      • Static BGP: In a network using static BGP, changes cannot be quickly addressed, and network configurations cannot be promptly adjusted, negatively affecting user experience.
    • Billed By
      • Bandwidth: Dedicated bandwidth, which is billed based on bandwidth size.
      • Traffic: Dedicated bandwidth, which is billed by traffic you have actually used.
    • Bandwidth Size: Select the bandwidth size (in Mbit/s) based on service requirements.

  3. Configure other node pool parameters and click Submit. For more details, see Creating a Node Pool.

    An EIP will be automatically assigned to each node newly added to this node pool. The lifecycle of such an EIP matches the node to which the EIP is bound. When a node is deleted, a non-yearly/monthly-billed EIP bound to the node will be automatically deleted. For details, see Table 1.

  4. To prevent automatic deletion of an EIP bound to a node when the node is deleted, modify the EIP release policy on the ECS console.