-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rstudio in kubernetes - runAsNonRoot context #888
Comments
The approach described in the Rocker Singularity guide, which calls Minimal example using a Pod (though StatefulSet would probably be a better choice), disregarding Ingress (or Gateway, etc.), persistent volume for /home/rstudio, and storing the password in a Secret (assuming authentication isn't handled at the Ingress layer):
Example: create the pod in the default namespace, and use port-forwarding to access:
|
@nathanweeks Is it not possible to have persistent volumes in the setup? When I try to mount /home with persistent volume, it doesnt go through. |
@radhupr Check out Zero to JupyterHub with Kubernetes + Authentication + JupyterLab R docker stack1. Reference deployment using Docker Swarm + GitHub OAuth + JupyterLab docker stacks: https://demo.jupyter.b-data.ch Footnotes
|
Using a PV for On a somewhat-related note: it's possible for users to create on-demand non-root rstudio server containers with persistent-volume-backed home directories on an OpenShift cluster (example referenced here: #747 (comment)). |
b-data's/my JupyterLab docker stack containers – like the original Jupyter docker stacks ones – run as non- |
Container image name
rocker/rstudio:4.4.2
Container image digest
No response
What operating system are you seeing the problem on?
Linux
System information
Kubernetes cluster 1.30
Docker image : rocker/rstudio:4.4.2
Bug description
Hi Team,
I want to run rstudio server (free version) on kubernetes. If I'm taking wrong approach here, please guide me on how to do the setup in kubernetes.
I'm using the image rocker/rstudio:4.4.2 and trying to run it as nonRoot user. (same noted with image rocker/tidyverse:4.4.2)
The pod spec is as follows
The container is failing to start with below error
s6-overlay-preinit: fatal: unable to mkdir /var/run/s6: Permission denied
Reference to discussion forum on same issue: https://forum.posit.co/t/rstudio-server-in-kubernetes/195626/4
Can you help in addressing the issue.
How to reproduce this bug?
The text was updated successfully, but these errors were encountered: