You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation is not a main issue here - the pulsar-all(and others) docker image, created as is, won't be able to deploy to work in rootless environment.
As I stated before: the most trouble-making thing is the VOLUME statement (https://github.com/apache/pulsar/blob/master/docker/pulsar/Dockerfile#L65) which makes /pulsar/conf and /pulsar/data access permissions impossible to modify later on.
Removing that line (or better replacing with RUN chmod -R a+w /pulsar/{conf,data}) and rebuilding docker images made it possible to run services as a non-root user (id:1000)
Sure I can file a PR with the pulsar docker change however it is just the first step to make it possible to deploy pulsar in cluster user space. For example pulsar_manager and other monitoring services seems to rely on container root user and cluster admin privileges
Activity
sijie commentedon Jun 10, 2020
@grzegorz-moto you were reading a pretty old version of Pulsar. Pulsar has already evolved to 2.5.2 release. Can you please check the latest documentation http://pulsar.apache.org/docs/en/kubernetes-helm/?
@jiazhai At the same time, we should look into redirecting the old versions of documentation to the newer version.
sijie commentedon Jun 10, 2020
@jiazhai
2df0e23
e8aec22
I think I made the changes back in 2018. Not sure why they were overwritten. You can use these two commits as references to fix the issue.
grzegorz-moto commentedon Jun 10, 2020
Documentation is not a main issue here - the pulsar-all(and others) docker image, created as is, won't be able to deploy to work in rootless environment.
As I stated before: the most trouble-making thing is the
VOLUMEstatement (https://github.com/apache/pulsar/blob/master/docker/pulsar/Dockerfile#L65) which makes/pulsar/confand/pulsar/dataaccess permissions impossible to modify later on.Removing that line (or better replacing with
RUN chmod -R a+w /pulsar/{conf,data}) and rebuilding docker images made it possible to run services as a non-root user (id:1000)sijie commentedon Jun 10, 2020
@grzegorz-moto I see. Are you interested in contributing a bugfix to this issue?
grzegorz-moto commentedon Jun 15, 2020
Sure I can file a PR with the pulsar docker change however it is just the first step to make it possible to deploy pulsar in cluster user space. For example pulsar_manager and other monitoring services seems to rely on container root user and cluster admin privileges
tisonkun commentedon Nov 14, 2022
Closed as stale. Please open a new issue if it's still relevant in maintained versions.