From 29ddb128c1a10db588b9536218e6381b9edcc16d Mon Sep 17 00:00:00 2001 From: Benedikt Bongartz Date: Tue, 15 Oct 2024 09:36:37 +0200 Subject: [PATCH] tempo-query: add ReadinessProbe Signed-off-by: Benedikt Bongartz --- .chloggen/tempo-query_ReadinessProbe.yaml | 16 ++++++++++++++++ .../manifests/queryfrontend/query_frontend.go | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100755 .chloggen/tempo-query_ReadinessProbe.yaml diff --git a/.chloggen/tempo-query_ReadinessProbe.yaml b/.chloggen/tempo-query_ReadinessProbe.yaml new file mode 100755 index 000000000..3262b9507 --- /dev/null +++ b/.chloggen/tempo-query_ReadinessProbe.yaml @@ -0,0 +1,16 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. tempostack, tempomonolithic, github action) +component: tempostack + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Add ReadinessProbe to tempo-query + +# One or more tracking issues related to the change +issues: [1058] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: diff --git a/internal/manifests/queryfrontend/query_frontend.go b/internal/manifests/queryfrontend/query_frontend.go index 27ca29859..97b8d0d42 100644 --- a/internal/manifests/queryfrontend/query_frontend.go +++ b/internal/manifests/queryfrontend/query_frontend.go @@ -311,6 +311,16 @@ func deployment(params manifestutils.Params) (*appsv1.Deployment, error) { }, Resources: tempoQueryResources(tempo), SecurityContext: manifestutils.TempoContainerSecurityContext(), + ReadinessProbe: &corev1.Probe{ + ProbeHandler: corev1.ProbeHandler{ + GRPC: &corev1.GRPCAction{ + Port: manifestutils.PortTempoGRPCQuery, + }, + }, + TimeoutSeconds: 1, + PeriodSeconds: 5, + FailureThreshold: 12, + }, } jaegerQueryVolume := corev1.Volume{ Name: manifestutils.TmpStorageVolumeName + "-query",