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 Kolodiazhny <[email protected]>
  • Loading branch information
e0ne committed Sep 7, 2023
1 parent 70efb55 commit 96b8ffd
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions deployments/sriovdp-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ spec:
memory: "200Mi"
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: log
mountPath: /var/log
Expand All @@ -65,7 +68,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: log
hostPath:
path: /var/log
Expand Down Expand Up @@ -126,7 +132,10 @@ spec:
memory: "200Mi"
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: log
mountPath: /var/log
Expand All @@ -137,7 +146,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: log
hostPath:
path: /var/log
Expand Down Expand Up @@ -197,7 +209,10 @@ spec:
memory: "200Mi"
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: log
mountPath: /var/log
Expand All @@ -208,7 +223,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: log
hostPath:
path: /var/log
Expand Down

0 comments on commit 96b8ffd

Please sign in to comment.