Skip to content

Commit

Permalink
helm, doc: Added debug Helm flag for the agent
Browse files Browse the repository at this point in the history
Added a `debug` Helm flag for the Tetragon agent. Implemented via
ConfigMap flag. The Tetragon DaemonSet will be restarted automatically
after changing the debug value.

Signed-off-by: Philip Schmid <phisch@cisco.com>
  • Loading branch information
PhilipSchmid committed Jul 1, 2024
1 parent d63d828 commit ee569ae
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/en/docs/reference/helm-chart.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions docs/content/en/docs/troubleshooting/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ level is controlled by the log-level option at startup:
* Enable debug level with `--log-level=debug`
* Enable trace level with `--log-level=trace`

### Change log level on Kubernetes

{{< warning >}}
The Tetragon DaemonSet will be restarted automatically after changing the debug Helm value!
{{< /warning >}}

It is possible to change the log level of the Tetragon (DaemonSet) instances by
setting `tetragon.debug` to `true`.

### Change log level dynamically

It is possible to change the log level dynamically by sending the corresponding
Expand Down
1 change: 1 addition & 0 deletions install/kubernetes/tetragon/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ data:
btf: {{ .Values.tetragon.btf }}
{{- end }}
procfs: /procRoot
debug: {{ .Values.tetragon.debug | quote }}
enable-process-cred: {{ .Values.tetragon.enableProcessCred | quote }}
enable-process-ns: {{ .Values.tetragon.enableProcessNs | quote }}
process-cache-size: {{ .Values.tetragon.processCacheSize | quote }}
Expand Down
2 changes: 2 additions & 0 deletions install/kubernetes/tetragon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ tetragon:
# Tetragon puts processes in an LRU cache. The cache is used to find ancestors
# for subsequently exec'ed processes.
processCacheSize: 65536
# If you want to run Tetragon in debug mode change this value to true
debug: false
# JSON export filename. Set it to an empty string to disable JSON export altogether.
exportFilename: tetragon.log
# JSON export file permissions as a string. Set it to "600" to restrict access to owner.
Expand Down

0 comments on commit ee569ae

Please # to comment.