Skip to content

Commit

Permalink
[helm] Use http-based liveness probe
Browse files Browse the repository at this point in the history
The previous commit introduced an HTTP endopoint that can be used for
the liveness probe. This patch changes helm to make that default instead
of the tetra status based liveness probe.

Signed-off-by: Anastasios Papagiannis <tasos.papagiannnis@gmail.com>
  • Loading branch information
tpapagian committed May 27, 2024
1 parent 032ca05 commit f3c11ed
Show file tree
Hide file tree
Showing 4 changed files with 16 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.

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.

9 changes: 9 additions & 0 deletions install/kubernetes/tetragon/templates/_container_tetragon.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@
{{- if .Values.tetragon.livenessProbe }}
livenessProbe:
{{- toYaml .Values.tetragon.livenessProbe | nindent 4 }}
{{- else if .Values.tetragon.livenessHttpProbe.enabled }}
livenessProbe:
timeoutSeconds: 60
httpGet:
path: /liveness
port: 6789
{{- if .Values.tetragon.livenessHttpProbe.host }}
host: {{ .Values.tetragon.livenessHttpProbe.host }}
{{- end }}
{{- else if .Values.tetragon.grpc.enabled }}
livenessProbe:
timeoutSeconds: 60
Expand Down
5 changes: 5 additions & 0 deletions install/kubernetes/tetragon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ tetragon:
# grpc:
# port: 54321

# -- Use http-based livenessProbe for the tetragon container. livenessProbe has a higher priority.
livenessHttpProbe:
enabled: true
# host: "localhost"

# 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 f3c11ed

Please sign in to comment.