Skip to content

Commit 22ae799

Browse files
authored
Merge pull request #109 from pohly/raw-block-dev-device
deploy: share /dev with host
2 parents 8359099 + 6fb9ba7 commit 22ae799

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

deploy/kubernetes-1.14/hostpath/csi-hostpath-plugin.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ spec:
102102
name: plugins-dir
103103
- mountPath: /csi-data-dir
104104
name: csi-data-dir
105-
105+
- mountPath: /dev
106+
name: dev-dir
106107
- name: liveness-probe
107108
volumeMounts:
108109
- mountPath: /csi
@@ -136,3 +137,7 @@ spec:
136137
path: /var/lib/csi-hostpath-data/
137138
type: DirectoryOrCreate
138139
name: csi-data-dir
140+
- hostPath:
141+
path: /dev
142+
type: Directory
143+
name: dev-dir

deploy/kubernetes-1.15/hostpath/csi-hostpath-plugin.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ spec:
102102
name: plugins-dir
103103
- mountPath: /csi-data-dir
104104
name: csi-data-dir
105-
105+
- mountPath: /dev
106+
name: dev-dir
106107
- name: liveness-probe
107108
volumeMounts:
108109
- mountPath: /csi
@@ -136,3 +137,7 @@ spec:
136137
path: /var/lib/csi-hostpath-data/
137138
type: DirectoryOrCreate
138139
name: csi-data-dir
140+
- hostPath:
141+
path: /dev
142+
type: Directory
143+
name: dev-dir

deploy/kubernetes-1.16/hostpath/csi-hostpath-plugin.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ spec:
102102
name: plugins-dir
103103
- mountPath: /csi-data-dir
104104
name: csi-data-dir
105-
105+
- mountPath: /dev
106+
name: dev-dir
106107
- name: liveness-probe
107108
volumeMounts:
108109
- mountPath: /csi
@@ -136,3 +137,7 @@ spec:
136137
path: /var/lib/csi-hostpath-data/
137138
type: DirectoryOrCreate
138139
name: csi-data-dir
140+
- hostPath:
141+
path: /dev
142+
type: Directory
143+
name: dev-dir

0 commit comments

Comments
 (0)