mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +00:00
e2e_node: run gpu pod long enough to become ready
This commit is contained in:
parent
7d7884c0e6
commit
3884dcb909
@ -107,7 +107,7 @@ var _ = SIGDescribe("NVIDIA GPU Device Plugin [Feature:GPUDevicePlugin][NodeFeat
|
|||||||
|
|
||||||
ginkgo.It("checks that when Kubelet restarts exclusive GPU assignation to pods is kept.", func() {
|
ginkgo.It("checks that when Kubelet restarts exclusive GPU assignation to pods is kept.", func() {
|
||||||
ginkgo.By("Creating one GPU pod on a node with at least two GPUs")
|
ginkgo.By("Creating one GPU pod on a node with at least two GPUs")
|
||||||
podRECMD := "devs=$(ls /dev/ | egrep '^nvidia[0-9]+$') && echo gpu devices: $devs"
|
podRECMD := "devs=$(ls /dev/ | egrep '^nvidia[0-9]+$') && echo gpu devices: $devs && sleep 120"
|
||||||
p1 := f.PodClient().CreateSync(makeBusyboxPod(e2egpu.NVIDIAGPUResourceName, podRECMD))
|
p1 := f.PodClient().CreateSync(makeBusyboxPod(e2egpu.NVIDIAGPUResourceName, podRECMD))
|
||||||
|
|
||||||
deviceIDRE := "gpu devices: (nvidia[0-9]+)"
|
deviceIDRE := "gpu devices: (nvidia[0-9]+)"
|
||||||
|
Loading…
Reference in New Issue
Block a user