Gadget opensnoop
opensnoop traces open() system calls
Example CR
apiVersion: gadget.kinvolk.io/v1alpha1
kind: Trace
metadata:
name: opensnoop
namespace: gadget
spec:
node: ubuntu-hirsute
gadget: opensnoop
runMode: Manual
outputMode: Stream
filter:
namespace: default
Operations
start
Start opensnoop gadget
$ kubectl annotate -n gadget trace/opensnoop \
gadget.kinvolk.io/operation=start
stop
Stop opensnoop gadget
$ kubectl annotate -n gadget trace/opensnoop \
gadget.kinvolk.io/operation=stop
Output Modes
- Stream