kubernetes/test/images/agnhost/netexec
Clayton Coleman 3c9959a5d4
netexec: Allow graceful shutdown testing from netexec
The current /exit method is not sufficient to test graceful shutdown
behaviors within Kube that allow services to remain available during
rolling restarts. Add support for `wait=DURATION` and
`timeout=DURATION` to the exit handler and wire that to the Go http
server's graceful termination.

With these methods netexec can be used in a pod to simulate graceful
shutdown by adding a preStop handler that hits the exit endpoint with
a timeout and wait period.
2020-05-07 09:18:27 -04:00
..
BUILD agnhost: add SCTP support to netexec 2020-03-04 23:34:15 +01:00
netexec.go netexec: Allow graceful shutdown testing from netexec 2020-05-07 09:18:27 -04:00