Add run hostpath to daemonset pods

`/run/mount` need to be share between host and
csi-plugin containers for `/run/mount/utab`

this is required to ensures that the network
is not stopped prior to unmounting the network devices.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit eb2fb9233b)
This commit is contained in:
Madhu Rajanna
2020-01-23 13:59:53 +05:30
committed by mergify[bot]
parent 5a3d439137
commit 0d6bba587a
8 changed files with 28 additions and 0 deletions

View File

@ -111,6 +111,8 @@ spec:
- name: socket-dir
mountPath: /csi
- mountPath: /dev
name: host-mount
- mountPath: /run/mount
name: host-dev
- mountPath: /run/mount
name: host-mount
@ -177,6 +179,9 @@ spec:
- name: host-dev
hostPath:
path: /dev
- name: host-mount
hostPath:
path: /run/mount
- name: host-sys
hostPath:
path: /sys

View File

@ -34,6 +34,8 @@ spec:
allowedHostPaths:
- pathPrefix: '/dev'
readOnly: false
- pathPrefix: '/run/mount'
readOnly: false
- pathPrefix: '/sys'
readOnly: false
- pathPrefix: '/lib/modules'