Merge pull request #7149 from laozc/nvidia-gpu-sec

Do not run GPU plugin under priviledge mode
pull/6815/head^2
Thomas Strömberg 2020-03-23 09:23:04 -07:00 committed by GitHub
commit 40d7633a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -42,9 +42,6 @@ spec:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins
- name: dev
hostPath:
path: /dev
containers:
- image: "nvidia/k8s-device-plugin:1.0.0-beta4"
command: ["/usr/bin/nvidia-device-plugin", "-logtostderr"]
@ -54,11 +51,11 @@ spec:
cpu: 50m
memory: 10Mi
securityContext:
privileged: true
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
- name: dev
mountPath: /dev
updateStrategy:
type: RollingUpdate