michaeljmarshall commented on issue #110:
URL: 
https://github.com/apache/pulsar-helm-chart/issues/110#issuecomment-846169762


   In thinking more about this more, we have a problem for our users that 
upgrade to 2.8.0 from any previous version of pulsar. The persistent data 
written by prior bookie and zookeeper pods will be owned by the root user, not 
the new `pulsar` user, and it's possible that directories like the `data` 
directory in the bookie will not be writable for the `pulsar` user. Given that 
zookeepers and bookies delete files, they will need more permission in order to 
function properly after upgrade.
   
   Solution 1 (mentioned above) is not sufficient to prevent breaking clusters 
during upgrade. We need to either run bookie and zookeeper containers as the 
root user by default and have users opt in to running them as non-root 
containers, or we need to solve the upgrade problem in the chart. Perhaps we 
can solve this by providing an optional init container that properly changes 
file system ownership for the bookie/zookeeper pods. Given that our users have 
already been running the containers as the root user, I don't see any conflict 
in using a privileged init container just this once.
   
   Whatever path we choose, I would like to try to give new users a rootless 
deployment by default. I am not familiar with how helm manages upgrades versus 
new deployments, but perhaps there is a way to have conditional logic that 
branches on upgrade vs new deployment?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to