Skip to content

Commit 2d72d61

Browse files
committed
feat(helm): add readiness probe for memcached
1 parent 46dc537 commit 2d72d61

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

‎docs/sources/setup/install/helm/reference.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6759,6 +6759,23 @@ false
67596759
<td><pre lang="json">
67606760
null
67616761
</pre>
6762+
</td>
6763+
</tr>
6764+
<tr>
6765+
<td>memcached.readinessProbe</td>
6766+
<td>object</td>
6767+
<td>Readiness probe</td>
6768+
<td><pre lang="json">
6769+
{
6770+
"failureThreshold": 6,
6771+
"initialDelaySeconds": 5,
6772+
"periodSeconds": 5,
6773+
"tcpSocket": {
6774+
"port": 11211
6775+
},
6776+
"timeoutSeconds": 3
6777+
}
6778+
</pre>
67626779
</td>
67636780
</tr>
67646781
<tr>

‎production/helm/loki/templates/memcached/_memcached-statefulset.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ spec:
124124
{{- end }}
125125
securityContext:
126126
{{- toYaml $.ctx.Values.memcached.containerSecurityContext | nindent 12 }}
127+
readinessProbe:
128+
{{- toYaml $.ctx.Values.memcached.readinessProbe | nindent 12 }}
127129
{{- if or .persistence.enabled .extraVolumeMounts }}
128130
volumeMounts:
129131
{{- if .persistence.enabled }}

‎production/helm/loki/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,6 +3032,14 @@ memcached:
30323032
fsGroup: 11211
30333033
# -- The name of the PriorityClass for memcached pods
30343034
priorityClassName: null
3035+
# -- Readiness probe
3036+
readinessProbe:
3037+
tcpSocket:
3038+
port: 11211
3039+
initialDelaySeconds: 5
3040+
periodSeconds: 5
3041+
timeoutSeconds: 3
3042+
failureThreshold: 6
30353043
# -- The SecurityContext for memcached containers
30363044
containerSecurityContext:
30373045
readOnlyRootFilesystem: true

0 commit comments

Comments
 (0)