Commit Graph

2 Commits (f805b9865947820e00add92446bd47969eae542b)

Author SHA1 Message Date
Ben Kuhn 7f3eb1dac6 Better example of a preStop hook for nginx (#12563)
It looks like `nginx -s quit` returns immediately rather than blocking until nginx has finished gracefully shutting down. As a result, just running `nginx -s quit` in the preStop hook won't work very well for high load and/or long running requests; nginx will get a TERM signal (and do a hard shutdown) immediately after `nginx -s quit` returns.

(I was getting connection errors while terminating pods, and adding a sleep-until-done to the preStop hook seemed to make them go away.)
2019-02-17 07:40:45 -08:00
Qiming 9b81aa7ccd Consolidate YAML files [part-10] (#9362)
* Consolidate YAML files [part-10]

This PR relocates the YAML files used by the pod configuration topic.

* Update examples_test.go

* Update examples_test.go

* Update examples_test.go

* Update examples_test.go

* Update examples_test.go
2018-07-03 13:31:20 -07:00