Skip to main content
Version: latest

Gadget oomkill

oomkill monitors when OOM killer is triggered and kills a process.

Example CR

apiVersion: gadget.kinvolk.io/v1alpha1
kind: Trace
metadata:
name: oomkill
namespace: gadget
spec:
node: ubuntu-hirsute
gadget: oomkill
runMode: Manual
outputMode: Stream
filter:
namespace: default

Operations

start

Start oomkill gadget

$ kubectl annotate -n gadget trace/oomkill \
gadget.kinvolk.io/operation=start

stop

Stop oomkill gadget

$ kubectl annotate -n gadget trace/oomkill \
gadget.kinvolk.io/operation=stop

Output Modes

  • Stream