Do not run GPU plugin under priviledge mode

pull/7149/head
Zhongcheng Lao 2020-03-23 00:06:05 +08:00
parent 5595564015
commit 566196c9d0
No known key found for this signature in database
GPG Key ID: 3B0C92A7E58EF413
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