-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
"podman play kube" pod shared namespace #9128
Comments
As a coincidence I was researching some similar stuff and according to what I read the net & ipc namespace should already be shared in a kubernetes style pod. podman generate kube generates |
Concur, I think this is implemented already. We support |
Actually, I may have spoken too soon as my test is now failing in the way it was when I lacked shared net namespace. So I can say with more confidence that shareProcessNamespace works, but am unsure that net/ipc are shared by default when running "play kube" (as I assume they should be) |
Oh, I haven't found any blog post nor any test in podman github repo about shareProcessNamespace :\ It does indeed work. On the other hand, as @phlogistonjohn pointed out if you specify shareProcessNamespace the other namespaces won't be shared. I did a little test. I created a pod and a container. (Note that
Inspecting it (
After this I generated a yaml file (
As you can see after the replay only the pid namespace is shared, the default ipc, net and uts are not. |
OK, that's a pretty serious bug. |
A friendly reminder that this issue had no activity for 30 days. |
The stale bot above got me to peek at this again and I noticed that it's tagged as a feature but sounds more like a bug, as @mheon notes above. Perhaps this should be retagged? |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
Is there an option to use pre-created (unshared) cgroup,ipc,net,uts,pid etc namespaces to call an equivalent of |
Better off asking that question at podman-py, I don't know. |
/kind feature
Add option to yaml used by
podman play kube
to set shared linux namespaces for pod like --share inpodman create pod --share ...
The text was updated successfully, but these errors were encountered: