Skip to content

Commit 059d810

Browse files
committed
Add and tune readiness/liveness configs
1 parent 30b0744 commit 059d810

File tree

4 files changed

+32
-4
lines changed

4 files changed

+32
-4
lines changed

charts/langstream/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: langstream
33
description: Helm chart for LangStream
44
type: application
5-
version: 0.0.8
6-
appVersion: 0.0.8
5+
version: 0.0.9
6+
appVersion: 0.0.10

charts/langstream/templates/api-gateway/api-gateway-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@ spec:
3939
httpGet:
4040
path: /management/health
4141
port: http
42+
initialDelaySeconds: {{ .Values.apiGateway.liveness.initialDelaySeconds }}
43+
periodSeconds: {{ .Values.apiGateway.liveness.periodSeconds }}
44+
timeoutSeconds: {{ .Values.apiGateway.liveness.timeoutSeconds }}
4245
readinessProbe:
4346
httpGet:
4447
path: /management/health
4548
port: http
49+
initialDelaySeconds: {{ .Values.apiGateway.readiness.initialDelaySeconds }}
50+
periodSeconds: {{ .Values.apiGateway.readiness.periodSeconds }}
51+
timeoutSeconds: {{ .Values.apiGateway.readiness.timeoutSeconds }}
4652
resources:
4753
{{- toYaml .Values.apiGateway.resources | nindent 12 }}
4854
env:

charts/langstream/templates/deployer/deployer-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@ spec:
3939
httpGet:
4040
path: /q/health/live
4141
port: http
42+
initialDelaySeconds: {{ .Values.deployer.liveness.initialDelaySeconds }}
43+
periodSeconds: {{ .Values.deployer.liveness.periodSeconds }}
44+
timeoutSeconds: {{ .Values.deployer.liveness.timeoutSeconds }}
4245
readinessProbe:
4346
httpGet:
4447
path: /q/health/ready
4548
port: http
49+
initialDelaySeconds: {{ .Values.deployer.readiness.initialDelaySeconds }}
50+
periodSeconds: {{ .Values.deployer.readiness.periodSeconds }}
51+
timeoutSeconds: {{ .Values.deployer.readiness.timeoutSeconds }}
4652
resources:
4753
{{- toYaml .Values.deployer.resources | nindent 12 }}
4854
env:

charts/langstream/values.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ controlPlane:
3838
timeoutSeconds: 5
3939
periodSeconds: 30
4040
readiness:
41-
initialDelaySeconds: 20
42-
periodSeconds: 10
41+
initialDelaySeconds: 10
42+
periodSeconds: 5
4343
timeoutSeconds: 5
4444
nodeSelector: {}
4545
tolerations: []
@@ -95,6 +95,14 @@ deployer:
9595
requests:
9696
cpu: 0.25
9797
memory: 256Mi
98+
liveness:
99+
initialDelaySeconds: 10
100+
timeoutSeconds: 5
101+
periodSeconds: 30
102+
readiness:
103+
initialDelaySeconds: 5
104+
periodSeconds: 5
105+
timeoutSeconds: 5
98106
nodeSelector: {}
99107
tolerations: []
100108
affinity: {}
@@ -153,6 +161,14 @@ apiGateway:
153161
nodeSelector: {}
154162
tolerations: []
155163
affinity: {}
164+
liveness:
165+
initialDelaySeconds: 10
166+
timeoutSeconds: 5
167+
periodSeconds: 30
168+
readiness:
169+
initialDelaySeconds: 5
170+
periodSeconds: 5
171+
timeoutSeconds: 5
156172
app:
157173
config: {}
158174

0 commit comments

Comments
 (0)