Multiple Services Sharing a CLB

Last updated: 2020-11-13 16:21:11

    Operation Scenario

    You can use the feature for sharing the same CLB among multiple Services to support the simultaneous opening of TCP and UDP on the same port for the same VIP.

    Note:

    This feature is not recommended for other scenarios.

    Descriptions

    • For clusters created before Aug. 17, 2020, the CLBs created by their Services support the sharing of the same CLB by default.
      For a cluster where the CLB sharing feature is enabled, the CLBs created by its Services are configured with the <serviceUUID>:tke-lb-serviceId and <serviceUUID>_<lb_listener_id>:<lb_listener_id> tags by default. Each CLB has its own key and value, so there are many tags. You can submit a ticket to request that we disable the CLB sharing feature for this kind of cluster and clear the tags.
    • For clusters created after Aug. 17, 2020, the feature of multiple Services sharing the same CLB is disabled by default.
      For a cluster where the CLB sharing feature is disabled, the CLBs created by its Services are configured with the tke-lb-serviceuuid:<serviceUUID> tag by default. All Services use the same batch of tag keys, and the number of tag keys can be controlled. You can submit a ticket to request that we enable the CLB sharing feature.

    Restrictions

    • In a scenario where multiple Services share the same CLB, the number of listeners managed by a single CLB cannot exceed 10.
    • In scenarios where a Service is reused, only the user-created Cloud Load Balancer (CLB) can be used. This is because when the CLB created in the TKE cluster is reused, CLB resources may not be released, leading to a resource leak. To reuse CLB resources created by the current TKE, you can delete the tke-createdBy-flag = yes tag of this CLB.

    Directions

    1. Refer to Creating a CLB Instance to create CLB for the public or private network of the VPC where the cluster is located.
    2. Refer to Creating a Deployment or Creating a Service to create a Service of the Loadbalancer type. Select Use an existing CLB and choose the CLB instance created in Step 1, as shown in the following figure.
    3. Repeat Step 2 to reuse the same CLB for multiple Services.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help