Description
Expected Behaviour
To enable the "batch job" use-case, users should be able to specify a "one shot" mode or parameter. This would allow unlimited requests to /healthz and /metrics, but only a single request to /
, after which it would shutdown the binary process.
This is partially to work around limitations in Kubernetes jobs with daemons, web-servers and side-cars which keep the job in a "running" status.
kubernetes/kubernetes#25908
kubernetes/enhancements#753
Argo workflows does appear to work in "sidecar" mode without any additional changes to the watchdog, but I suspect building on Kubernetes Jobs would be cleaner from a dependencies point of view.
Example with figlet container:
https://twitter.com/alexellisuk/status/1148239010034311169
Example in Argo docs on sidecars:
https://github.com/argoproj/argo/blob/master/examples/README.md#sidecars
Activity