This folder contains examples of resources YAML and configuration files.
- The
policylibrarydirectory contains example policies (TracingPolicy custom resources). These examples are generally well documented, either in the file itself or in Tetragon documentation. - See
tracingpolicydirectory for more policy examples. Files in this directory are valid policies, but they are not curated in terms of suitability for their purpose. Add more examples if you feel like it. - See
configurationdirectory 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.yamlPass the file with the --tracing-policy flag:
sudo ./tetragon --bpf-lib bpf/objs --tracing-policy tracingpolicy/write.yamlOr use tetra CLI against a running Tetragon instance:
tetra tracingpolicy add tracingpolicy/write.yaml