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