-
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
Enabling hostIPC
does not have any effect
#10757
Comments
It sounds like you're using cri-dockerd (--docker) although you didn't call this out? I don't know this is expected to work, but this is not managed by anything here in K3s. If you're using Docker as your container runtime, I would open an issue with https://github.com/Mirantis/cri-dockerd |
All clear, thanks for the pointer @brandond ! Created a new issue here: Mirantis/cri-dockerd#399 |
Still on this, but not 100% related with the title. Using k3s with containerd, with the Pod spec described above.
Where that proc path number is the pause container. If I start a container using nerdctl ( Now my question are:
|
K3s (this project) doesn't do any of this. This is all containerd, kubernetes, and CRI API stuff. If you want things changed, that would need to happen elsewhere. |
I will say that the pause container IS the pod sandbox. The pause containers entire purpose is to sit there doing nothing except existing as a process, because namespaces are cleaned up by the kernel as soon as the last process in them exits. The pause container (pod sandbox) remains running as long as the pod exists, so that other containers can run within the same namespaces. This is just how Kubernetes and CRI works. |
Thanks for the reply! Yes, I got the same behaviour with other k8s engines (EKS and minikube). Thanks for confirming our suspicions. |
Environmental Info:
K3s Version:
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
1 server, 1 agent
Describe the bug:
It seems that enabling
hostIPC
does not have any effect.Steps To Reproduce:
curl -sfL https://get.k3s.io | sh -
kubectl apply -f test-ipc-pod.yaml
docker inspect $(docker ps -q --filter "name=k8s_test-ipc") | grep IpcMode
Expected behavior:
The
IpcMode
is set as if you'd run a docker image with--ipc=host
:"IpcMode": "host",
Actual behavior:
"IpcMode": "container:e86cde4006dd4ebb82229db13e77b223e248b4969dc3738d58600971874ff372",
Additional context / logs:
I've noticed that the
POD
sibling of the container uses"IpcMode": "host"
, but that seems to be independent of whether I am settinghostIPC
totrue
orfalse
:The text was updated successfully, but these errors were encountered: