Load Balancer Health Check
- 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.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot