rstudio / helm

Helm Resources for RStudio Products
MIT License
32 stars 28 forks source link

Connect on Openshift: failure during startup due to `chown <DataDir>` #470

Closed pat-s closed 5 months ago

pat-s commented 6 months ago

We've built an image which works around all non-openshift compliant startup procedures. We're currently stuck at the step when Connect tries to chown DataDir. In Openshift, non-privileged users are not allowed to do this.

[...]
Creating Python environment cache directory: [...]
Error: Unable to apply the configuration: lchown <DataDir`/python-environments: operation not permitted

Is there any way to avoid this chown call? According to the documentation, it should be possible to run Connect rootless in k8s. Yet the above built-in command seems to prevent this and cannot be modified/turned off right now.

pat-s commented 5 months ago

Setting securityContext: null for both occurrences and letting Openshift create it itself did the trick.