From 5b72eb2f7fae74c1fd54c5ebf298e26c4e250c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandor=20Sz=C3=BCcs?= Date: Thu, 4 Jul 2024 16:33:19 +0200 Subject: [PATCH] docs: running as ingress backend (#3142) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit you can also use the newer lifecycle hook target "sleep" to let kubelet sleep for you, so no need to have a binary inside your container Signed-off-by: Sandor Szücs --- docs/kubernetes/ingress-backends.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/kubernetes/ingress-backends.md b/docs/kubernetes/ingress-backends.md index 74020c14e9..1e46401bae 100644 --- a/docs/kubernetes/ingress-backends.md +++ b/docs/kubernetes/ingress-backends.md @@ -42,6 +42,16 @@ lifecycle: command: ["sleep","20"] ``` +or use sleep in kubelet without the need of the binary `sleep` in your +container: + +```yaml +lifecycle: + preStop: + sleep: + seconds: 20 +``` + 20 seconds should be enough to fade your Pod out of the endpoints list and Skipper's routing table.