zadig icon indicating copy to clipboard operation
zadig copied to clipboard

Add healthz API

Open flyer103 opened this issue 3 years ago • 5 comments

Is your enhancement proposal related to a problem? Please describe.

Abnormalities may occur during the operation of the service, which needs to be detected and handled. Consider adding a healthz API to the Zadig services to provide queries on the health status of the component.

Describe the solution you'd like

We can consider using https://github.com/kubernetes/apiserver/tree/master/pkg/server/healthz in K8s to implement the healthz API.

Describe alternatives you've considered

None.

Additional context

For K8s-based systems, using methods similar to K8s will reduce learning costs.

flyer103 avatar Dec 16 '21 15:12 flyer103

This issue has been solved.

detongz avatar Feb 06 '22 04:02 detongz

Hi, @tbbrave, currently only two services, user and policy, have added the healthz API, and other components have not been added. For the architecture diagram, see architecture . For other components, are you interested in adding the healthz API? :D

flyer103 avatar Feb 07 '22 02:02 flyer103

Hi, @flyer103 ,I am interested, please assign this issue to me.

detongz avatar Feb 07 '22 05:02 detongz

Thanks! Has assigned this issue to you @tbbrave 👍

flyer103 avatar Feb 07 '22 05:02 flyer103

https://github.com/koderover/zadig/pull/1165

detongz avatar Mar 13 '22 07:03 detongz