Skip to content

Commit 06c7a8c

Browse files
committed
feat(helm): add readiness probe for memcached
1 parent 3b8d993 commit 06c7a8c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

‎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)