Feature summary:
The webservice command should include support to declare k8s probes for webservices using the Kubernetes backend.
Use case(s):
- zero-downtime restart (compare T337182) using startup probes (startupProbe)
- automatic restart in case of issues (e.g. worker node problems) using readiness or liveness probes (readinessProbe, livenessProbe)
Benefits:
With native support of probes in webservice, users won’t have to bypass webservice and interact with k8s objects directly to fulfill the use cases listed above. (Currently, users can patch probes into their deployment on their own, but any such patches will be lost on the next webservice restart, because that recreates the entire deployment; so until webservice supports probes natively, such users will have to do restarts without it, using kubectl rollout restart deployment.)