Skip to content

Commit

Permalink
Merge pull request #24 from akram/add-biderectional-mount
Browse files Browse the repository at this point in the history
Use bidirectional mountPropagation and hostPath volume under /run
  • Loading branch information
openshift-merge-robot committed Nov 5, 2021
2 parents b547dd4 + 4b1843e commit 3fc3530
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions assets/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
name: socket-dir
- mountPath: /registration
name: registration-dir
- mountPath: /csi-data-dir
- mountPath: /run/csi-data-dir
name: csi-data-dir

- name: hostpath
Expand Down Expand Up @@ -78,8 +78,9 @@ spec:
- mountPath: /var/lib/kubelet/plugins
mountPropagation: Bidirectional
name: plugins-dir
- mountPath: /csi-data-dir
- mountPath: /run/csi-data-dir
name: csi-data-dir
mountPropagation: Bidirectional
- mountPath: /csi-volumes-map
name: csi-volumes-map
- mountPath: /dev
Expand Down Expand Up @@ -110,9 +111,10 @@ spec:
path: /var/lib/csi-volumes-map/
type: DirectoryOrCreate
name: csi-volumes-map
- emptyDir:
# this tells Kubernetes to mount a tmpfs (RAM-backed filesystem)
medium: Memory
- hostPath:
# hostPath under /run are mounted as a tmpfs (RAM-backed filesystem)
path: /run/csi-data-dir
type: DirectoryOrCreate
name: csi-data-dir
- hostPath:
path: /dev
Expand Down
12 changes: 7 additions & 5 deletions pkg/generated/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3fc3530

Please sign in to comment.