This folder contains examples of resources YAML and configuration files.
- See
tracingpolicy
directory for examples on TracingPolicy custom resources. These examples are written manually. Add more examples if you feel like it. - See
configuration
directory for an example of configuration file for Tetragon and and directory structure.
Let's take tracingpolicy/write.yaml
arbitrarly as an example.
kubectl apply -f tracingpolicy/write.yaml
Pass the file with the --tracing-policy
flag:
sudo ./tetragon --bpf-lib bpf/objs --tracing-policy tracingpolicy/write.yaml
Or use tetra
CLI against a running Tetragon instance:
tetra tracingpolicy add tracingpolicy/write.yaml