Skip to content

Commit 4619dd1

Browse files
bors[bot]jfcoz
andauthored
Merge #157
157: replace initialDelaySeconds by a startupProbe r=alallema a=jfcoz # Pull Request ## Related issue Fixes long startup delay ## What does this PR do? Instead of waiting initialDelaySeconds=60 (by default) for the pod to be ready, add a startupProbe which cheks every periodSeconds=1 during failureThreshold=60 iterations. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Co-authored-by: Julien Francoz <julien@les-tilleuls.coop>
2 parents cfde2a2 + 4fe3335 commit 4619dd1

File tree

4 files changed

+28
-9
lines changed

4 files changed

+28
-9
lines changed

charts/meilisearch/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: "v0.30.0"
33
description: A Helm chart for the Meilisearch search engine
44
name: meilisearch
5-
version: 0.1.45
5+
version: 0.1.46
66
icon: https://res.cloudinary.com/meilisearch/image/upload/v1597822872/Logo/logo_img.svg
77
home: https://github.com/meilisearch/meilisearch-kubernetes/charts
88
maintainers:

charts/meilisearch/templates/statefulset.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ spec:
6767
- name: http
6868
containerPort: {{ .Values.container.containerPort }}
6969
protocol: TCP
70+
startupProbe:
71+
httpGet:
72+
path: /health
73+
port: http
74+
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
75+
initialDelaySeconds: {{ .Values.startupProbe.InitialDelaySeconds }}
76+
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
7077
livenessProbe:
7178
httpGet:
7279
path: /health

charts/meilisearch/values.yaml

+9-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44

55
replicaCount: 1
66

7+
startupProbe:
8+
periodSeconds: 1
9+
InitialDelaySeconds: 1
10+
failureThreshold: 60
11+
712
readinessProbe:
8-
periodSeconds: 60
9-
InitialDelaySeconds: 60
13+
periodSeconds: 10
14+
InitialDelaySeconds: 0
1015

1116
livenessProbe:
12-
periodSeconds: 60
13-
InitialDelaySeconds: 60
17+
periodSeconds: 10
18+
InitialDelaySeconds: 0
1419

1520
image:
1621
repository: getmeili/meilisearch

manifests/meilisearch.yaml

+11-4
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,25 @@ spec:
8787
- name: http
8888
containerPort: 7700
8989
protocol: TCP
90+
startupProbe:
91+
httpGet:
92+
path: /health
93+
port: http
94+
periodSeconds: 1
95+
initialDelaySeconds: 1
96+
failureThreshold: 60
9097
livenessProbe:
9198
httpGet:
9299
path: /health
93100
port: http
94-
periodSeconds: 60
95-
initialDelaySeconds: 60
101+
periodSeconds: 10
102+
initialDelaySeconds: 0
96103
readinessProbe:
97104
httpGet:
98105
path: /health
99106
port: http
100-
periodSeconds: 60
101-
initialDelaySeconds: 60
107+
periodSeconds: 10
108+
initialDelaySeconds: 0
102109
resources:
103110
{}
104111
---

0 commit comments

Comments
 (0)