chore: update k8s check env command
This commit is contained in:
@@ -28,7 +28,7 @@ const Line = styled.div`
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
transform: rotate(45deg);
|
||||
background-color: var(--ant-color-bg-container);
|
||||
background-color: var(--ant-color-bg-elevated);
|
||||
border-top: 1px solid var(--ant-color-border);
|
||||
border-left: 1px solid var(--ant-color-border);
|
||||
}
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user