Skip to content
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

How to run enroot in a managed K8s? #45

Closed
elgalu opened this issue Nov 22, 2020 · 5 comments
Closed

How to run enroot in a managed K8s? #45

elgalu opened this issue Nov 22, 2020 · 5 comments

Comments

@elgalu
Copy link

elgalu commented Nov 22, 2020

Hi, how to setup enroot kernel config in a customized Kubernetes setup? Or perhaps this is not possible when running in a K8s unprivileged pod?

./enroot-check_*.run --verify
[ERROR] Could not find kernel configuration
cat /proc/sys/user/max_user_namespaces
3062836

cat /proc/sys/user/max_mnt_namespaces
3062836

cat /proc/sys/kernel/unprivileged_userns_clone
1
@3XX0
Copy link
Member

3XX0 commented Nov 22, 2020

Unfortunately this is not possible unprivileged because docker will block it through seccomp amongst other things. You could relax the seccomp filters though which should be safe if you're truly unprivileged.

@elgalu
Copy link
Author

elgalu commented Nov 22, 2020

Thanks, do you know exactly how to configure my K8s Pod securityContext similar to containers/podman#8130 (comment) perhaps by leveraging seccomp.security.alpha.kubernetes.io ?

@3XX0
Copy link
Member

3XX0 commented Dec 1, 2020

Yeah maybe, I'm not really familiar with the new seccomp profiles in K8s.
You will most likely have to whitelist at least unshare and mount, probably a few other ones

@3XX0
Copy link
Member

3XX0 commented Jan 15, 2021

Any update? Could you make it work?

@elgalu
Copy link
Author

elgalu commented Feb 18, 2021

Gave up on K8s, we'll go with SLURM + plain EC2.

@elgalu elgalu closed this as completed Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants