Sign inSign up

sethpollack/soft-limits

By sethpollack

Updated almost 9 years ago

Gracefully shutdown pods with soft resource limits.

Image
0

283

sethpollack/soft-limits repository overview

kubernetes Soft-Limits

The soft-limit controller allows you to set soft resource limits via pod annotations and will kill the pods gracefully when they exceed those limits.

Create the controller with kubectl apply -f https://raw.githubusercontent.com/sethpollack/soft-limits/master/example.yaml

Add the following annotations sethpollack.net/soft-limit-cpu and sethpollack.net/soft-limit-memory to your pods to set the soft limits.

You can use any valid resource value or a percentage of the hard limit. For example sethpollack.net/soft-limit-memory: 200Mi or sethpollack.net/soft-limit-memory: 95%.

Tag summary

Content type

-

Digest

Size

8.5 MB

Last updated

almost 9 years ago

docker pull sethpollack/soft-limits