From e3692fc57dd830b999fbbbd4019672a0039fd0ac 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 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 --- .../tetragon/templates/_container_tetragon.tpl | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/install/kubernetes/tetragon/templates/_container_tetragon.tpl b/install/kubernetes/tetragon/templates/_container_tetragon.tpl index fb8cc91508d..3ce0609ec74 100644 --- a/install/kubernetes/tetragon/templates/_container_tetragon.tpl +++ b/install/kubernetes/tetragon/templates/_container_tetragon.tpl @@ -70,14 +70,9 @@ {{- else if .Values.tetragon.grpc.enabled }} livenessProbe: timeoutSeconds: 60 - exec: - command: - - tetra - - status - - --server-address - - {{ .Values.tetragon.grpc.address }} - - --retries - - "5" + grpc: + port: 6789 + service: "liveness" {{- end -}} {{- end -}}