ricardomaraschini / oomhero

Kubernetes sidecar for memory usage tracking
Apache License 2.0
108 stars 10 forks source link

using oomhero binary inside app Dockerfile and calling via probes #10

Closed laimison closed 1 year ago

laimison commented 3 years ago

hi,

is it possible to use oomhero binary inside app container and call it periodically using livenessProbe or readinessProbe instead of running constantly dedicated container for it?

ricardomaraschini commented 2 years ago

At the current state it is not possible but that can be achieved by making the following loop optional: https://github.com/ricardomaraschini/oomhero/blob/master/cmd/oomhero/main.go#L55

Feel free to send up a PR if you feel like doing so.

ricardomaraschini commented 1 year ago

Closing this due to inactivity.