You can automatically create a Pay-As-You-Go Server Load Balancer instance when creating a cluster, or bind a monthly/yearly subscription or Pay-As-You-Go Server Load Balancer instance to a cluster after creating the cluster.

Container Service supports binding an Internet Server Load Balancer instance, a VPC Server Load Balancer instance, or an intranet Server Load Balancer instance in a classic network to a cluster.

Limits

  • You can only bind a Server Load Balancer instance to a cluster of the same region.
  • You can only bind a Server Load Balancer instance to a cluster created by the same account.
  • A VPC cluster can bind an Internet Server Load Balancer instance or a VPC Server Load Balancer instance.
  • One cluster can only bind one Server Load Balancer instance. 
  • Two clusters cannot share one Server Load Balancer instance.

Prerequisites

You have created a Server Load Balancer instance in the Server Load Balancer console   and configured the TCP 9080 port for the instance to listen to backend servers. 

For how to create a Server Load Balancer instance, see Create a Server Load Balancer instance.

Bind a Server Load Balancer instance

  1. Log on to the Container Service console.
  2. Click Manage at the right of the cluster that you want to bind a Server Load Balancer instance. The cluster details page appears.


  3. Click Load Balancer Settings in the left-side navigation pane  > and then click Bind Server Load Balancer .


  4. Select the Server Load Balancer instance that you want to bind to the cluster from the Server Load Balancer ID list and click OK.
    Note
    If the selected Server Load Balancer instance has been bound to a backend server, the system will prompt you that “This Server Load Balancer instance is already bound to a backend server”. You need to select another Server Load Balancer instance that has not been bound to any backend server.

Rebind a Server Load Balancer instance

You can change the Server Load Balancer instance bound to your cluster per your needs.

  1. Log on to the Container Service console.
  2. Click Clusters in the left-side navigation pane.
  3. Click Manage at the right of the cluster that you want to re-bind a Server Load Balancer instance. The cluster details page appears.


  4. Click Load Balancer Settings in the left-side navigation pane,  > and click Re-bind Server Load Balancer .


  5. Select the Server Load Balancer instance that you want to bind to the cluster from the Server Load Balancer ID list and click OK.

Unbind a Server Load Balancer instance

You can unbind a Server Load Balancer instance in the Container Service console if the instance is not required.

  1. Log on to the Container Service console.
  2. Click Clusters in the left-side navigation pane.
  3. Click Manage at the right of the cluster that you want to unbind a Server Load Balancer instance. The cluster details page appears.


  4. Click Load Balancer Settings in the left-side navigation pane,  > and click Unbind Server Load Balancer .