Updated on 2024-09-24 GMT+08:00

Load Balancer Health Check

  1. Log in to the CCE Console console and click the cluster name to access the cluster console. In the navigation pane, choose Services & Ingresses > Services. Then, locate the Service you want to operate and choose More > Edit YAML in the Operation column.
  2. Configure the following parameters in YAML:

    metadata:
      annotations:
        kubernetes.io/elb.health-check-flag: 'on'
        kubernetes.io/elb.health-check-option: '{"protocol":"TCP","delay":"5","timeout":"10","max_retries":"3"}'

    Parameter description

    Parameter

    Description

    kubernetes.io/elb.health-check-flag

    Whether to enable the ELB health check. The recommended value is on.

    If this option is enabled, the kubernetes.io/elb.health-check-option field must also be specified at the same time.

    kubernetes.io/elb.health-check-option

    protocol: health check protocol.

    delay: health check interval, in seconds.

    timeout: health check timeout, in seconds.

    max_retries: maximum number of health check retries.

    You can also choose More > Update in the Operation column of the Service to configure the parameters.