mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-25 07:40:19 +00:00
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>
This commit is contained in:
parent
881f59d142
commit
eb2fb9233b
@ -121,6 +121,8 @@ spec:
|
|||||||
mountPropagation: "Bidirectional"
|
mountPropagation: "Bidirectional"
|
||||||
- mountPath: /dev
|
- mountPath: /dev
|
||||||
name: host-dev
|
name: host-dev
|
||||||
|
- mountPath: /run/mount
|
||||||
|
name: host-mount
|
||||||
- mountPath: /sys
|
- mountPath: /sys
|
||||||
name: host-sys
|
name: host-sys
|
||||||
- mountPath: /lib/modules
|
- mountPath: /lib/modules
|
||||||
@ -180,6 +182,9 @@ spec:
|
|||||||
- name: host-sys
|
- name: host-sys
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /sys
|
path: /sys
|
||||||
|
- name: host-mount
|
||||||
|
hostPath:
|
||||||
|
path: /run/mount
|
||||||
- name: lib-modules
|
- name: lib-modules
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /lib/modules
|
path: /lib/modules
|
||||||
|
@ -34,6 +34,8 @@ spec:
|
|||||||
allowedHostPaths:
|
allowedHostPaths:
|
||||||
- pathPrefix: '/dev'
|
- pathPrefix: '/dev'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
- pathPrefix: '/run/mount'
|
||||||
|
readOnly: false
|
||||||
- pathPrefix: '/sys'
|
- pathPrefix: '/sys'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- pathPrefix: '/lib/modules'
|
- pathPrefix: '/lib/modules'
|
||||||
|
@ -111,6 +111,8 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- mountPath: /dev
|
- mountPath: /dev
|
||||||
|
name: host-mount
|
||||||
|
- mountPath: /run/mount
|
||||||
name: host-dev
|
name: host-dev
|
||||||
- mountPath: /sys
|
- mountPath: /sys
|
||||||
name: host-sys
|
name: host-sys
|
||||||
@ -175,6 +177,9 @@ spec:
|
|||||||
- name: host-dev
|
- name: host-dev
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev
|
path: /dev
|
||||||
|
- name: host-mount
|
||||||
|
hostPath:
|
||||||
|
path: /run/mount
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /sys
|
path: /sys
|
||||||
|
@ -34,6 +34,8 @@ spec:
|
|||||||
allowedHostPaths:
|
allowedHostPaths:
|
||||||
- pathPrefix: '/dev'
|
- pathPrefix: '/dev'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
- pathPrefix: '/run/mount'
|
||||||
|
readOnly: false
|
||||||
- pathPrefix: '/sys'
|
- pathPrefix: '/sys'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- pathPrefix: '/lib/modules'
|
- pathPrefix: '/lib/modules'
|
||||||
|
@ -101,6 +101,8 @@ spec:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
- name: host-dev
|
- name: host-dev
|
||||||
mountPath: /dev
|
mountPath: /dev
|
||||||
|
- name: host-mount
|
||||||
|
mountPath: /run/mount
|
||||||
- name: ceph-csi-config
|
- name: ceph-csi-config
|
||||||
mountPath: /etc/ceph-csi-config/
|
mountPath: /etc/ceph-csi-config/
|
||||||
- name: keys-tmp-dir
|
- name: keys-tmp-dir
|
||||||
@ -155,6 +157,9 @@ spec:
|
|||||||
- name: host-dev
|
- name: host-dev
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev
|
path: /dev
|
||||||
|
- name: host-mount
|
||||||
|
hostPath:
|
||||||
|
path: /run/mount
|
||||||
- name: ceph-csi-config
|
- name: ceph-csi-config
|
||||||
configMap:
|
configMap:
|
||||||
name: ceph-csi-config
|
name: ceph-csi-config
|
||||||
|
@ -28,6 +28,8 @@ spec:
|
|||||||
allowedHostPaths:
|
allowedHostPaths:
|
||||||
- pathPrefix: '/dev'
|
- pathPrefix: '/dev'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
- pathPrefix: '/run/mount'
|
||||||
|
readOnly: false
|
||||||
- pathPrefix: '/sys'
|
- pathPrefix: '/sys'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- pathPrefix: '/lib/modules'
|
- pathPrefix: '/lib/modules'
|
||||||
|
@ -28,6 +28,8 @@ spec:
|
|||||||
allowedHostPaths:
|
allowedHostPaths:
|
||||||
- pathPrefix: '/dev'
|
- pathPrefix: '/dev'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
|
- pathPrefix: '/run/mount'
|
||||||
|
readOnly: false
|
||||||
- pathPrefix: '/sys'
|
- pathPrefix: '/sys'
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- pathPrefix: '/lib/modules'
|
- pathPrefix: '/lib/modules'
|
||||||
|
@ -89,6 +89,8 @@ spec:
|
|||||||
name: host-dev
|
name: host-dev
|
||||||
- mountPath: /sys
|
- mountPath: /sys
|
||||||
name: host-sys
|
name: host-sys
|
||||||
|
- mountPath: /run/mount
|
||||||
|
name: host-mount
|
||||||
- mountPath: /lib/modules
|
- mountPath: /lib/modules
|
||||||
name: lib-modules
|
name: lib-modules
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@ -147,6 +149,9 @@ spec:
|
|||||||
- name: host-sys
|
- name: host-sys
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /sys
|
path: /sys
|
||||||
|
- name: host-mount
|
||||||
|
hostPath:
|
||||||
|
path: /run/mount
|
||||||
- name: lib-modules
|
- name: lib-modules
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /lib/modules
|
path: /lib/modules
|
||||||
|
Loading…
Reference in New Issue
Block a user