Skip to content

Commit 6a66b3c

Browse files
authored
Fix procfs in nvkind clusters (#1468)
1 parent fc6bf9e commit 6a66b3c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

components/kubernetes/nvidia/nvidia.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func initNvkindCluster(env config.Env, vm *remote.Host, name string, clusterOpts
216216
env.CommonNamer().ResourceName("nvkind-create"),
217217
&command.Args{
218218
Create: pulumi.Sprintf("nvkind cluster create --name %s --config-template %s --config-values %s", kindClusterName, nvkindTemplatePath, nvkindValuesPath),
219-
Delete: pulumi.Sprintf("kind cluster delete --name %s", kindClusterName),
219+
Delete: pulumi.Sprintf("kind delete clusters %s || true", kindClusterName),
220220
Triggers: pulumi.Array{nvkindValuesContent, pulumi.String(nvkindConfigTemplate)},
221221
},
222222
opts...)

components/kubernetes/nvidia/nvkind-config-template.yml

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ nodes:
4444
- hostPath: /dev/null
4545
containerPath: /var/run/nvidia-container-devices/{{ $d }}
4646
{{- end }}
47+
# We need to mount the /host/proc directory to access the host's /proc directory inside
48+
# of the agent container. Else we just get access to the process namespace of the docker container
49+
- hostPath: /proc
50+
containerPath: /host/proc
4751
{{- end }}
4852
{{- end }}
4953
containerdConfigPatches:

0 commit comments

Comments
 (0)