
# 负载均衡器健康检查
1. 进入[CCE Console](https://console.huaweicloud.com/cce/?locale=zh-cn)页面，单击"集群名称--服务--服务"，单击要操作服务更多列的"编辑YAML"。
2. 通过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"}'
   ```
   **参数说明：**
   
   | **参数**                                | **说明**                                                                                                                                                                                                |
   |:---|:---|
   | kubernetes.io/elb.health-check-flag   | 是否开启ELB健康检查功能，建议值'on'。 需同时填写kubernetes.io/elb.health-check-option字段。                                                                                           |
   | kubernetes.io/elb.health-check-option | protocol：健康检查的协议。 delay：健康检查间隔（秒）。 timeout：健康检查的超时时间（秒）。 max_retries：健康检查的最大重试次数。 |
      
   也可在[步骤1服务页面](https://support.huaweicloud.com/bestpractice-asm/asm_bestpractice_1037.html)单击操作列的"更新"在更新服务页面进行设置。
   ![](https://support.huaweicloud.com/bestpractice-asm/zh-cn_image_0000001981331493.png)
   
   
