Skip to content

Commit

Permalink
Update device plugins volumes mounts
Browse files Browse the repository at this point in the history
There is no need to mount the whole '/var/lib/kubelet/' directory
into a pod. It's enough to mount only '/var/lib/kubelet/device-plugins'
and '/var/lib/kubelet/plugins_registry' directories.

Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
  • Loading branch information
e0ne committed Sep 7, 2023
1 parent 14c6765 commit 6841873
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bindata/manifests/plugins/sriov-device-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ spec:
memory: 50Mi
volumeMounts:
- name: devicesock
mountPath: /var/lib/kubelet/
mountPath: /var/lib/kubelet/device-plugins
readOnly: false
- name: plugins-registry
mountPath: /var/lib/kubelet/plugins_registry
readOnly: false
- name: config-volume
mountPath: /etc/pcidp/
Expand All @@ -68,7 +71,10 @@ spec:
volumes:
- name: devicesock
hostPath:
path: /var/lib/kubelet/
path: /var/lib/kubelet/device-plugins
- name: plugins-registry
hostPath:
path: /var/lib/kubelet/plugins_registry
- name: config-volume
configMap:
name: device-plugin-config
Expand Down

0 comments on commit 6841873

Please sign in to comment.