Skip to content

Commit e80898f

Browse files
rkuo-danswerRichard Kuo (Onyx)
authored andcommitted
Feature/helm k8s probes 2 (onyx-dot-app#4766)
* add probes * lint fixes * add beat probes --------- Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
1 parent ad9da33 commit e80898f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

deployment/helm/charts/onyx/templates/celery-beat.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,25 @@ spec:
5252
name: {{ .Values.config.envConfigMapName }}
5353
env:
5454
{{- include "onyx-stack.envSecrets" . | nindent 12}}
55+
startupProbe:
56+
{{ .Values.celery_shared.startupProbe | toYaml | nindent 12}}
57+
readinessProbe:
58+
{{ .Values.celery_shared.readinessProbe | toYaml | nindent 12}}
59+
exec:
60+
command:
61+
- /bin/bash
62+
- -c
63+
- >
64+
python onyx/background/celery/celery_k8s_probe.py
65+
--probe readiness
66+
--filename /tmp/onyx_k8s_beat_readiness.txt
67+
livenessProbe:
68+
{{ .Values.celery_shared.livenessProbe | toYaml | nindent 12}}
69+
exec:
70+
command:
71+
- /bin/bash
72+
- -c
73+
- >
74+
python onyx/background/celery/celery_k8s_probe.py
75+
--probe liveness
76+
--filename /tmp/onyx_k8s_beat_liveness.txt

0 commit comments

Comments
 (0)