chore: update k8s check env command

This commit is contained in:
jialin
2025-09-22 10:22:23 +08:00
parent 749adb56f8
commit dcc0db35b5
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -69,7 +69,8 @@ export const addWorkerGuide: Record<string, any> = {
},
checkEnvCommand: {
[ProviderValueMap.Docker]: `nvidia-smi >/dev/null 2>&1 && echo "NVIDIA driver OK" || (echo "NVIDIA driver issue"; exit 1) && docker info 2>/dev/null | grep -q "Default Runtime: nvidia" && echo "NVIDIA Container Toolkit OK" || (echo "NVIDIA Container Toolkit not configured"; exit 1)`,
[ProviderValueMap.Kubernetes]: 'k8s env check command'
[ProviderValueMap.Kubernetes]:
'kubectl get runtimeclass nvidia > /dev/null 2>&1 && echo "NVIDIA runtimeclass registered" || (echo "NVIDIA runtimeclass issue"; exit 1)'
}
},
npu: {