tencent cloud

masukan

Custom Load Balancer

Terakhir diperbarui:2024-08-12 17:48:23

    Overview

    By default, a public CLB is automatically created during installation to handle traffic, but you can also use the TKE service annotation to customize the CLB for Nginx Ingress Controller. This document introduces the method for customization.

    Using Private Network CLB

    For example, if you want to change the CLB to a private network CLB, the sample code in values.yaml is as follows:
    controller:
    service:
    annotations:
    service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: 'subnet-xxxxxx' # ID of the subnet where the CLB instance is located, which needs to be specified for the private network CLB

    Using Existing CLBs

    You can also directly create a CLB in the CLB console according to your own needs (such as the custom instance specifications, ISP type, billing mode, and bandwidth limit), and then reuse this CLB with annotations in values.yaml. For details, refer to Using Existing CLBs.
    controller:
    service:
    annotations:
    service.kubernetes.io/tke-existed-lbid: 'lb-xxxxxxxx' # Instance ID of the existing CLB
    Note:
    When a CLB instance is created in the CLB console, the selected VPC network must be consistent with that of the cluster.

    Using Private and Public Network CLBs

    If you need Nginx Ingress to use both public and private network CLBs to handle traffic simultaneously, you can configure Nginx Ingress to use two services. By default, a public network CLB service will be created. If you also need a private network CLB service, you can configure the internal service by following these steps:
    controller:
    service:
    internal:
    enabled: true # Create a private network CLB service
    annotations:
    service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: "subnet-xxxxxxxx" # Configure the subnet for the private network CLB
    
    
    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24