Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Tke
Commits
1d4dcf8e
Unverified
Commit
1d4dcf8e
authored
4 years ago
by
XiaoLiang Hu
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(installer): enable-nvidia-device (#676)
parent
df92a5c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/platform/provider/baremetal/manifests/gpu-manager/gpu-manager.yaml
+21
-0
...provider/baremetal/manifests/gpu-manager/gpu-manager.yaml
with
21 additions
and
0 deletions
+21
-0
pkg/platform/provider/baremetal/manifests/gpu-manager/gpu-manager.yaml
+
21
-
0
View file @
1d4dcf8e
...
...
@@ -62,6 +62,19 @@ spec:
nodeSelector
:
nvidia-device-enable
:
enable
hostPID
:
true
initContainers
:
-
name
:
nvidia-uvm-enable
image
:
{{
.BusyboxImage
}}
command
:
[
"
sh"
,
"
-c"
,
"
/sbin/modprobe
nvidia-uvm
2>/dev/null
&&
mknod
-m
666
/dev/nvidia-uvm
c
`grep
nvidia-uvm
/proc/devices
|
awk
'{print
$1}'`
0
2>/dev/null
||
echo
0"
]
imagePullPolicy
:
IfNotPresent
securityContext
:
privileged
:
true
volumeMounts
:
-
mountPath
:
/lib/modules
name
:
lib-modules
readOnly
:
true
-
mountPath
:
/dev
name
:
dev
containers
:
-
name
:
gpu-manager
image
:
{{
.GPUManagerImage
}}
...
...
@@ -103,6 +116,14 @@ spec:
fieldRef
:
fieldPath
:
spec.nodeName
volumes
:
-
name
:
lib-modules
hostPath
:
type
:
Directory
path
:
/lib/modules
-
name
:
dev
hostPath
:
type
:
Directory
path
:
/dev
-
name
:
device-plugin
hostPath
:
type
:
Directory
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help