To users, hostPath is easier to setup compared to PV.
hostPath is easier to ensure the journal dir is local (the journal dir is on same host machine as master pod)
Cons:
Need a root initContainer to do chown. Minor security concern.
If any user complains about the root user of initContainer, then they will have to manually setup the permission of the hostPath themselves, which means there's no difference for these users to use PV or hostPath because they have to manually set things up anyways. In that case they can just use PV. Or we can add another switch to indicate whether we should do the chown. We'll address this when someone complains.
Pros:
hostPath
is easier to setup compared to PV.hostPath
is easier to ensure the journal dir is local (the journal dir is on same host machine as master pod)Cons:
chown
. Minor security concern.If any user complains about the root user of initContainer, then they will have to manually setup the permission of the hostPath themselves, which means there's no difference for these users to use PV or hostPath because they have to manually set things up anyways. In that case they can just use PV. Or we can add another switch to indicate whether we should do the chown. We'll address this when someone complains.