Skip to content

Commit

Permalink
helm: Add tetragon.livenessProbe value
Browse files Browse the repository at this point in the history
[ upstream commit 1871fe8 ]

Add tetragon.livenessProbe Helm value that overrides the default
liveness probe for the tetragon container. For example, to use grpc
probe, you can specify tetragon.livenessProbe Helm value like this:

    tetragon:
      livenessProbe:
        grpc:
          port: 54321

Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent committed May 25, 2024
1 parent 2adfc75 commit d617c2c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/content/en/docs/reference/helm-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ To use [the values available](#values), with `helm install` or `helm upgrade`, u
| tetragon.image.override | string | `nil` | |
| tetragon.image.repository | string | `"quay.io/cilium/tetragon"` | |
| tetragon.image.tag | string | `"v1.0.3"` | |
| tetragon.livenessProbe | object | `{}` | Overrides the default livenessProbe for the tetragon container. |
| tetragon.processCacheSize | int | `65536` | |
| tetragon.prometheus.address | string | `""` | The address at which to expose metrics. Set it to "" to expose on all available interfaces. |
| tetragon.prometheus.enabled | bool | `true` | Whether to enable exposing Tetragon metrics. |
Expand Down
1 change: 1 addition & 0 deletions install/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Helm chart for Tetragon
| tetragon.image.override | string | `nil` | |
| tetragon.image.repository | string | `"quay.io/cilium/tetragon"` | |
| tetragon.image.tag | string | `"v1.0.3"` | |
| tetragon.livenessProbe | object | `{}` | Overrides the default livenessProbe for the tetragon container. |
| tetragon.processCacheSize | int | `65536` | |
| tetragon.prometheus.address | string | `""` | The address at which to expose metrics. Set it to "" to expose on all available interfaces. |
| tetragon.prometheus.enabled | bool | `true` | Whether to enable exposing Tetragon metrics. |
Expand Down
5 changes: 4 additions & 1 deletion install/kubernetes/templates/_container_tetragon.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@
resources:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.tetragon.grpc.enabled }}
{{- if .Values.tetragon.livenessProbe }}
livenessProbe:
{{- toYaml .Values.tetragon.livenessProbe | nindent 4 }}
{{- else if .Values.tetragon.grpc.enabled }}
livenessProbe:
timeoutSeconds: 60
exec:
Expand Down
5 changes: 5 additions & 0 deletions install/kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ tetragon:
extraVolumeMounts: []
securityContext:
privileged: true
# -- Overrides the default livenessProbe for the tetragon container.
livenessProbe: {}
# grpc:
# port: 54321

# Tetragon puts processes in an LRU cache. The cache is used to find ancestors for subsequently exec'ed
# processes.
processCacheSize: 65536
Expand Down

0 comments on commit d617c2c

Please sign in to comment.