• Cloud Container Engine

cce
  1. Help Center
  2. Cloud Container Engine
  3. User Guide 2.0
  4. Container Orchestration
  5. Using Load Balancers

Using Load Balancers

The service type of a load balancer can be used in a chart. Its definition method is the same as that of the community.

To display the type of the load balancer on the CCE console, add the following annotation to the corresponding resource type chart:

apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
  name: {{ .Release.Name }}-master
  annotations:
    "service.protal.kubernetes.io/access-ip": "10.4.4.14:8888"
    "service.protal.kubernetes.io/type": LoadBalancer
spec:
  ......
Table 1 Key parameters

Parameter

Description

*annotations

Used for console display. service.protal.kubernetes.io/access-ip indicates the IP address and exposed port number of the load balancer. The value of service.protal.kubernetes.io/type is fixed at LoadBalancer.