Skip to content

feat(helm): add readiness probe for memcached #15609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
14 changes: 14 additions & 0 deletions docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6922,6 +6922,20 @@ false
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>memcached.readinessProbe</td>
<td>object</td>
<td>Readiness probe for memcached pods (probe port defaults to container port)</td>
<td><pre lang="json">
{
"failureThreshold": 6,
"initialDelaySeconds": 5,
"periodSeconds": 5,
"timeoutSeconds": 3
}
</pre>
</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ spec:
{{- end }}
securityContext:
{{- toYaml $.ctx.Values.memcached.containerSecurityContext | nindent 12 }}
{{- with $.ctx.Values.memcached.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if or .persistence.enabled .extraVolumeMounts }}
volumeMounts:
{{- if .persistence.enabled }}
Expand Down
8 changes: 8 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3204,6 +3204,14 @@ memcached:
fsGroup: 11211
# -- The name of the PriorityClass for memcached pods
priorityClassName: null
# -- Readiness probe for memcached pods (probe port defaults to container port)
readinessProbe:
tcpSocket:
port: client
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 6
# -- The SecurityContext for memcached containers
containerSecurityContext:
readOnlyRootFilesystem: true
Expand Down