Skip to content

Commit

Permalink
chore(helm): fix missing nvidia cdi spec for helm deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
heiruwu committed Mar 19, 2024
1 parent cb72cd8 commit 200b245
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion charts/core/templates/ray-service/ray-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ spec:
lifecycle:
postStart:
exec:
command: ["/bin/sh","-c","/home/ray/script/start_ray_serve.sh"]
command:
- "/bin/bash"
- "-c"
- >
if [[ -n $${NVIDIA_VISIBLE_DEVICES} ]]; then
sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml;
fi;
/home/ray/script/start_ray_serve.sh
preStop:
exec:
command: ["/bin/sh","-c","ray stop"]
Expand Down

0 comments on commit 200b245

Please sign in to comment.