From dcd7c85a16dd618d1d78fc724163eb24cc79813a Mon Sep 17 00:00:00 2001 From: giorgio076 <51814334+giorgio076@users.noreply.github.com> Date: Fri, 2 Aug 2019 14:52:04 +0200 Subject: [PATCH] ceph: fix PSP allowedHostPaths syntax If you try to uncomment items under 'allowedHostPaths:' and load the file you get an error. Correct with right syntax, allowedHostPaths need pathPrefix Signed-off-by: giorgio076 <51814334+giorgio076@users.noreply.github.com> --- cluster/examples/kubernetes/ceph/common.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cluster/examples/kubernetes/ceph/common.yaml b/cluster/examples/kubernetes/ceph/common.yaml index d18f40090..f4b395b69 100644 --- a/cluster/examples/kubernetes/ceph/common.yaml +++ b/cluster/examples/kubernetes/ceph/common.yaml @@ -732,9 +732,12 @@ spec: # allowedHostPaths can be set to Rook's known host volume mount points when they are fully-known # directory-based OSDs make this hard to nail down # allowedHostPaths: - # - /run/udev # for OSD prep - # - /dev # for OSD prep - # - /var/lib/rook # or whatever the dataDirHostPath value is set to + # - pathPrefix: "/run/udev" # for OSD prep + # readOnly: false + # - pathPrefix: "/dev" # for OSD prep + # readOnly: false + # - pathPrefix: "/var/lib/rook" # or whatever the dataDirHostPath value is set to + # readOnly: false # Ceph requires host IPC for setting up encrypted devices hostIPC: true # Ceph OSDs need to share the same PID namespace