-
Notifications
You must be signed in to change notification settings - Fork 2k
add probes #4762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add probes #4762
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,3 +57,25 @@ spec: | |
name: {{ .Values.config.envConfigMapName }} | ||
env: | ||
{{- include "onyx-stack.envSecrets" . | nindent 12}} | ||
startupProbe: | ||
{{ .Values.celery_shared.startupProbe | toYaml | nindent 12}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: The startupProbe configuration is incomplete - it's missing the exec command block that's present in the other probes |
||
readinessProbe: | ||
{{ .Values.celery_shared.readinessProbe | toYaml | nindent 12}} | ||
exec: | ||
Comment on lines
+63
to
+64
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: The readinessProbe has duplicate configuration - values from celery_shared.readinessProbe may conflict with the explicit exec command block |
||
command: | ||
- /bin/bash | ||
- -c | ||
- > | ||
python onyx/background/celery/celery_k8s_probe.py | ||
--probe readiness | ||
--filename /tmp/onyx_k8s_primary_readiness.txt | ||
livenessProbe: | ||
{{ .Values.celery_shared.livenessProbe | toYaml | nindent 12}} | ||
exec: | ||
rkuo-danswer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
command: | ||
- /bin/bash | ||
- -c | ||
- > | ||
python onyx/background/celery/celery_k8s_probe.py | ||
--probe liveness | ||
--filename /tmp/onyx_k8s_primary_liveness.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider using full kubectl command instead of shorthand 'k' in documentation for clarity