Move Health Checks to a top level configuration object #603
Description
Right now all health check logic lives as a normal config value with a HEALTHCHECK_*
env var like naming convention - given how important this element has come and the expansion of its functionalities in the future then we should consider moving this to a top level configuration (like tags) and add new CLI endpoints for it.
deis health:set url=/
, deis health:set port=4999
and so on
A migration can be pretty easily written to move things within the config object to represent the new location.
While we are at it there should be a discussion around introducing the separation between liveness and readiness probes (but keep ability to set a global one to apply to both for a given application) and how we want to arch the introduction of Exec
and 'TCPSocket' in addition to HTTPGet
http://kubernetes.io/docs/user-guide/pod-states/#container-probes