Skip to content

Commit

Permalink
Add plugins-dir to hostpath plugin daemonset
Browse files Browse the repository at this point in the history
The volume publish target path for block devices are usually under
/var/lib/kubelet/plugins directory. Hence, adding plugins directory to
the pod volumes with bidirectional mount propagation.
  • Loading branch information
darkowlzz committed Jan 30, 2019
1 parent 1e92eb8 commit 1a9ef86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/hostpath/csi-hostpath-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ spec:
- mountPath: /var/lib/kubelet/pods
mountPropagation: Bidirectional
name: mountpoint-dir
- mountPath: /var/lib/kubelet/plugins
mountPropagation: Bidirectional
name: plugins-dir
volumes:
- hostPath:
path: /var/lib/kubelet/plugins/csi-hostpath
Expand All @@ -72,3 +75,7 @@ spec:
path: /var/lib/kubelet/plugins_registry
type: Directory
name: registration-dir
- hostPath:
path: /var/lib/kubelet/plugins
type: Directory
name: plugins-dir

0 comments on commit 1a9ef86

Please sign in to comment.