Skip to content

Commit

Permalink
Merge pull request #7132 from laozc/nvidia-gpu
Browse files Browse the repository at this point in the history
Update Nvidia GPU plugin
  • Loading branch information
tstromberg authored Mar 21, 2020
2 parents 3022e9a + 39fea36 commit d78f0b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,18 @@ spec:
hostPath:
path: /dev
containers:
- image: "{{default "k8s.gcr.io" .ImageRepository}}/nvidia-gpu-device-plugin@sha256:0842734032018be107fa2490c98156992911e3e1f2a21e059ff0105b07dd8e9e"
command: ["/usr/bin/nvidia-gpu-device-plugin", "-logtostderr"]
- image: "nvidia/k8s-device-plugin:1.0.0-beta4"
command: ["/usr/bin/nvidia-device-plugin", "-logtostderr"]
name: nvidia-gpu-device-plugin
resources:
requests:
cpu: 50m
memory: 10Mi
limits:
cpu: 50m
memory: 10Mi
securityContext:
privileged: true
volumeMounts:
- name: device-plugin
mountPath: /device-plugin
mountPath: /var/lib/kubelet/device-plugins
- name: dev
mountPath: /dev
updateStrategy:
Expand Down
4 changes: 2 additions & 2 deletions pkg/minikube/assets/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,11 @@ var Addons = map[string]*Addon{
}, false, "nvidia-driver-installer"),
"nvidia-gpu-device-plugin": NewAddon([]*BinAsset{
MustBinAsset(
"deploy/addons/gpu/nvidia-gpu-device-plugin.yaml.tmpl",
"deploy/addons/gpu/nvidia-gpu-device-plugin.yaml",
vmpath.GuestAddonsDir,
"nvidia-gpu-device-plugin.yaml",
"0640",
true),
false),
}, false, "nvidia-gpu-device-plugin"),
"logviewer": NewAddon([]*BinAsset{
MustBinAsset(
Expand Down

0 comments on commit d78f0b1

Please sign in to comment.