-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Clear warning required for containerd documentation #27017
Comments
@aaabdallah: This issue is currently awaiting triage. SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The current text reads:
How would you reword this @aaabdallah? How about: /language en |
Thank you for all the work that you do, related to Kubernetes and all other open source projects you contribute to. Your efforts are really appreciated. My own experience is that the configuration snippet there is actually harmful in the scope of using kubeadm. I realize now that the page is discussing how to use containerd with the systemd cgroup driver in general... but the typical person coming to the "kubernetes.io" documentation is there to learn how to use containerd in the context of kubernetes. That makes that configuration snippet a bit out of place since it will actually prevent the usage of kubeadm. For this reason, I believe it is better to be crystal clear and explicitly mention all of that. "To use the systemd cgroup driver... [plugins... However, when using kubeadm to initialize the cluster, the above configuration should NOT be done (it will actually prevent kubelet from bringing up static pods). Instead, manually configure the cgroup driver for kubelet." |
i don't see anything invalid on the page, but ideas for clarification are welcome. https://kubernetes.io/docs/setup/production-environment/container-runtimes/#cgroup-drivers
^ the above already explains when the systemd driver is needed.
it is the opposite. and then pass the same driver to the kubelet as explained here: cgroup drivers have been confusing users for a long time and this is really a problem in the CRI spec. there is a plan to automatically handle them but this might take a while to complete. |
this area of the docs is seeing some refactor, so you can add comments here too: |
This is the source of our difference:. I have tried that setting multiple times (at least 4 times). It does NOT work for me on Ubuntu 20.04. When I do NOT specify that setting in containerd's config.toml, then and ONLY THEN does it work... for me. |
i just tried following our k8s.io documentation for installing containerd / installing kubeadm / creating kubeadm cluster.
everything works fine for me:
also a number of different CI setups are running kubeadm like so, you must be failing something in your setup. /kind support |
did you restart containerd after you added:
the step |
opened PR for this: |
This is a Feature Request
What would you like to be added
The documentation for container runtimes at:
https://kubernetes.io/docs/setup/production-environment/container-runtimes/#containerd-systemd
needs to have a clear warning that by adding the suggested change in config.toml, this will actually PREVENT
kubeadm init
from successfully initializing a cluster (this is my experience multiple times with K8s 1.20.4 on Ubuntu 20.04 with containerd - not Docker).Why is this needed
The current wording does not indicate that the suggested change for containerd's config.toml will actually break things.
Comments
It is not clear even why that suggestion is there given that it stops
kubeadm init
from working.The text was updated successfully, but these errors were encountered: