Skip to content

Commit

Permalink
feat(helm): add readiness probe for memcached
Browse files Browse the repository at this point in the history
  • Loading branch information
LukoJy3D committed Jan 6, 2025
1 parent 3b8d993 commit 5b0fd72
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6759,6 +6759,23 @@ false
<td><pre lang="json">
null
</pre>
</td>
</tr>
<tr>
<td>memcached.readinessProbe</td>
<td>object</td>
<td>Readiness probe</td>
<td><pre lang="json">
{
"failureThreshold": 6,
"initialDelaySeconds": 5,
"periodSeconds": 5,
"tcpSocket": {
"port": 11211
},
"timeoutSeconds": 3
}
</pre>
</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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 @@ -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
Expand Down

0 comments on commit 5b0fd72

Please sign in to comment.