Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Examples

This folder contains examples of resources YAML and configuration files.

  • The policylibrary directory contains example policies (TracingPolicy custom resources). These examples are generally well documented, either in the file itself or in Tetragon documentation.
  • See tracingpolicy directory 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 configuration directory for an example of configuration file for Tetragon and and directory structure.

How to deploy a TracingPolicy example

Let's take tracingpolicy/write.yaml arbitrarly as an example.

Kubernetes

kubectl apply -f tracingpolicy/write.yaml

Standalone

Pass the file with the --tracing-policy flag:

sudo ./tetragon --bpf-lib bpf/objs --tracing-policy tracingpolicy/write.yaml

Tetra CLI

Or use tetra CLI against a running Tetragon instance:

tetra tracingpolicy add tracingpolicy/write.yaml