The OSD containers should be able to run unprivileged in the following scenarios:
The default seems like it should be to run unprivileged. If the admin wants Rook to do the provisioning of the devices he could override it with a flag and run privileged.
related to #82
The privileged portion of the pods could be carried out by an Init Container.
It seems like separating storage initialization/verification from OSD startup could be a smart thing to do. At least in the case of Init Containers the OSD container wouldn't start without the initial formatting/verification returning success.
Most helpful comment
The privileged portion of the pods could be carried out by an Init Container.
It seems like separating storage initialization/verification from OSD startup could be a smart thing to do. At least in the case of Init Containers the OSD container wouldn't start without the initial formatting/verification returning success.