Container Service Kubernetes clusters allow you to reuse Server Load Balancer (SLB) instances. You can bind one SLB instance to multiple applications that are deployed in a Container Service Kubernetes cluster in Enterprise Distributed Application Service (EDAS) to save resources. This way, fixed IP addresses are also provided for the applications so that operations and maintenance (O&M) become easier.

Prerequisites

  • The Cloud Controller Manager (CCM) component of the Container Service Kubernetes cluster is upgraded. For more information about how to upgrade the component, see Manage system components.

    Container Service Kubernetes clusters have multiple templates. The CCM component is upgraded to the following versions for the managed Kubernetes cluster template and the dedicated Kubernetes cluster template:

    • The CCM version of a managed Kubernetes cluster is V1.9.3.112-g93c7140-aliyun or later.
    • The CCM version of a dedicated Kubernetes cluster is v1.9.3.106-g3f39653-aliyun or later.
    Notice If you do not upgrade the CCM component of the Container Service Kubernetes cluster, the SLB instance fails to be reused. The existing listeners of the SLB instance are deleted and the application traffic may drop to zero.
  • Create an SLB instance.
    Notice
    • When you bind an SLB instance on the Application Overview page in the EDAS console, you cannot reuse the SLB instance that is purchased (created) in the EDAS console.
    • The created SLB instance must be in the same virtual private cloud (VPC) as the application to which the SLB instance is to be bound.
  • The limits of using SLB are learned. For more information, see Limits.

Reuse an SLB instance

To reuse an SLB instance, bind an existing SLB instance to an application. The procedure for binding an existing SLB instance is the same as that for binding a new SLB instance. The difference only lies in selecting an SLB instance. For more information about the procedure, see Bind SLB instances.

This section describes notes when you reuse an SLB instance.

  • Select SLB: Select the SLB instance that you created in the SLB console from the drop-down list on the right side, rather than the SLB instance that is purchased in the EDAS console.
  • SLB Port: The port must be an unused container port.
SLB - Reuse an SLB instance
Note The specification metrics of an SLB instance include Maximum Connections, New Connections Per Second, and Queries Per Second. If the number of access requests to the application exceeds the value of a specification metric of the SLB instance, you can bind more SLB instances to share the traffic pressure.