From 5b0fd72ca9ac66e180b2d3826d7142a456207a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Juozas=20Janu=C5=A1aitis?= Date: Mon, 6 Jan 2025 17:52:39 +0200 Subject: [PATCH] feat(helm): add readiness probe for memcached --- docs/sources/setup/install/helm/reference.md | 17 +++++++++++++++++ .../memcached/_memcached-statefulset.tpl | 2 ++ production/helm/loki/values.yaml | 8 ++++++++ 3 files changed, 27 insertions(+) diff --git a/docs/sources/setup/install/helm/reference.md b/docs/sources/setup/install/helm/reference.md index e0f2fe9dc3829..03183842fec10 100644 --- a/docs/sources/setup/install/helm/reference.md +++ b/docs/sources/setup/install/helm/reference.md @@ -6759,6 +6759,23 @@ false
 null
 
+ + + + memcached.readinessProbe + object + Readiness probe +
+{
+  "failureThreshold": 6,
+  "initialDelaySeconds": 5,
+  "periodSeconds": 5,
+  "tcpSocket": {
+    "port": 11211
+  },
+  "timeoutSeconds": 3
+}
+
diff --git a/production/helm/loki/templates/memcached/_memcached-statefulset.tpl b/production/helm/loki/templates/memcached/_memcached-statefulset.tpl index cb798e508f35b..3600e938ae7d0 100644 --- a/production/helm/loki/templates/memcached/_memcached-statefulset.tpl +++ b/production/helm/loki/templates/memcached/_memcached-statefulset.tpl @@ -124,6 +124,8 @@ spec: {{- end }} securityContext: {{- toYaml $.ctx.Values.memcached.containerSecurityContext | nindent 12 }} + readinessProbe: + {{- toYaml $.ctx.Values.memcached.readinessProbe | nindent 12 }} {{- if or .persistence.enabled .extraVolumeMounts }} volumeMounts: {{- if .persistence.enabled }} diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 2af9e32015888..01a404574565f 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -3032,6 +3032,14 @@ memcached: fsGroup: 11211 # -- The name of the PriorityClass for memcached pods priorityClassName: null + # -- Readiness probe + readinessProbe: + tcpSocket: + port: 11211 + initialDelaySeconds: 5 + periodSeconds: 5 + timeoutSeconds: 3 + failureThreshold: 6 # -- The SecurityContext for memcached containers containerSecurityContext: readOnlyRootFilesystem: true