Commit Graph

4 Commits

Author SHA1 Message Date
Akihiro Suda e2f17b7579
Fix typos,config paths in kubelet-in-userns.md. Add link to port forwarder implementation (#30410)
* kubelet-in-userns.md: fix typoes

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>

* kubelet-in-userns.md: fix unexpected config paths

Referring to `/etc/containerd/config.toml` makes sense only when the user has
read/write permissions to `/etc/containerd/config.toml` in the current mount
namespace, which is not always assumed in the context of this documentation.

The same applies to `/etc/crio/crio.conf`, too.

Partially revert PR 30020.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>

* kubelet-in-userns.md: add back the link to example port forwarder implementation

Add back the link to `k3s/pkg/rootlessports/controller.go` removed in PR 30020.

As stated in `{{ <note> }}`, the corresponding section is written for developers
of Kubernetes distros, not for end users.
So we should retain the implementation details here.

Partially revert PR 30020.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-11-11 18:02:28 -08:00
Qiming Teng 59ad3d65b0 Tweak the kubelet in user namespace page
This PR fixes some nits in the page and adds some links for the
convenience of users.
2021-10-12 09:10:18 +08:00
Akihiro Suda bc0a2487f8
kubelet-in-userns.md: update for minikube
minikube now supports Rootless Docker driver.

minikube internally sets the KubeletInUserNamespace feature gate automatically
for supporting Rootless Docker driver.

https://minikube.sigs.k8s.io/docs/drivers/docker/

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-09-14 16:54:05 +09:00
Akihiro Suda 2860fbf1ad
Add `KubeletInUserNamespace` feature gate
Enables support for running kubelet in a user namespace.
The user namespace has to be created before running kubelet.
All the node components such as CRI need to be running in the same user namespace.

- Tracking issue: kubernetes/enhancements issue 2033
- KEP: https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2033-kubelet-in-userns-aka-rootless
- Implementation: kubernetes/kubernetes PR 92863

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-07-27 15:18:46 +09:00