From d1d3faf29efa36ed7fff1beba7aa51f556f288f0 Mon Sep 17 00:00:00 2001 From: Anastasios Papagiannis Date: Tue, 28 May 2024 16:02:42 +0000 Subject: [PATCH] [helm] Use grpc-based liveness probe [upstream commit 2252857c7020fb4f155d556df1a759f807ca4d6b] The previous commit introduced a gRPC server that can be used for the liveness probe. This patch changes helm to make that default instead of the tetra status based liveness probe. The user can still use the tetra status based liveness probe by defining a values file similar to: tetragon: livenessProbe: timeoutSeconds: 60 exec: command: - tetra - status - --server-address - "54321" - --retries - "5" Signed-off-by: Anastasios Papagiannis --- .../kubernetes/templates/_container_tetragon.tpl | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/install/kubernetes/templates/_container_tetragon.tpl b/install/kubernetes/templates/_container_tetragon.tpl index 82c196bb808..165e7f56b11 100644 --- a/install/kubernetes/templates/_container_tetragon.tpl +++ b/install/kubernetes/templates/_container_tetragon.tpl @@ -69,17 +69,12 @@ {{- if .Values.tetragon.livenessProbe }} livenessProbe: {{- toYaml .Values.tetragon.livenessProbe | nindent 4 }} -{{- else if .Values.tetragon.grpc.enabled }} +{{- else if .Values.tetragon.healthGrpc.enabled }} livenessProbe: timeoutSeconds: 60 - exec: - command: - - tetra - - status - - --server-address - - {{ .Values.tetragon.grpc.address }} - - --retries - - "5" + grpc: + port: {{ .Values.tetragon.healthGrpc.port }} + service: "liveness" {{- end -}} {{- end -}}