vmware-tanzu-labs / educates-training-platform

A platform for hosting interactive workshop environments in Kubernetes, or on top of a local container runtime.
https://docs.educates.dev
Apache License 2.0
72 stars 18 forks source link

Create endpoints for liveness and readiness for the operators #355

Closed jorgemoralespou closed 4 months ago

jorgemoralespou commented 5 months ago

Is your feature request related to a problem? Please describe.

When looking at the operators (session-manager, secrets-manager) it would be nice to mark them as ready when it's actually processing work, not during startup time.

Describe the solution you'd like

Add a liveness and readiness endpoints to both managers so that we can configure them and have kubernetes restart the pods in case any failure is detected from within.

Describe alternatives you've considered

No response

Additional information

No response

GrahamDumpleton commented 4 months ago

Operators already had a liveness check, but did not have a readiness check. For readiness check, can use same existing probe endpoint as used for liveness check.