Skip to content

Commit

Permalink
docs: running as ingress backend (#3142)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
szuecs authored Jul 4, 2024
1 parent efd2654 commit 5b72eb2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/kubernetes/ingress-backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 5b72eb2

Please sign in to comment.