-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Create a doc to explain how to change the runtime (mostly moving away from dockershim) #25879
Comments
Is anyone working on this? I'm interested for working on this issue. |
nobody working on it right now. So please go ahead. Do you want to discuss the proper placement of this document in the issue of prefer to start with the draft of a document? |
It'll be great to hear whatever you can recommend. I'll send in a draft then |
Sorry for delay. My suggestion would be to start with the document that replicates content from "Upgrade worker nodes" section here: https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/#upgrade-worker-nodes And instead of kubelet update - provide instructions on changing from docker to containerd. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale
Users are already doing this. As discussed previously the steps are similar
to a kubelet upgrade with node drain.
|
Any updates on this? Would be nice to have a migration guide as we plan to move our kubeadm cluster away from dockershim. |
i'm pretty sure the steps would be similar to this:
but SIG node should confirm if this is actually the right way. you could create a test cluster and try migrating it. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
/triage accepted |
/language en |
/priority important-soon |
We are missing documentation on how to move Moving away from Docker leaves users without any documented method of building container images. Suggested migration approaches include using Or even writing your own |
https://kubernetes.io/blog/2020/12/02/dont-panic-kubernetes-and-docker/ covers why you can still use |
I was specifically referring to the (questionable) practice of building container images directly on the nodes. It is not possible to use It is mostly a problem for single-node clusters, like minikube. But it could be worth more than a little side note, like now ? "You can still pull images or build them using docker build command. But images built or pulled by Docker would not be visible to container runtime and Kubernetes. They needed to be pushed to some registry to allow them to be used by Kubernetes." |
The FAQ has been updated, and has better info about building (after switching to containerd) now:
We detailed the manual steps in minikube, such as installing and configuring Using https://github.com/vmware-tanzu/buildkit-cli-for-kubectl/blob/main/docs/architecture.md (under "directly") |
I will like to take on this |
/assign @chrisnegus |
I believe documentation is done to meet the intent of this issue, including How to find out what container runtime is used on a Node, as well as instructions for migrating from using dockershim to: Beyond that, @afbjorklund asked for docs describing replacements for using |
As far as I know, the information on how to build images is available in the container runtimes (outside k8s.io). The main highlight was that it is not covered with For containerd, that means installing and configuring buildkit. But it does not have to be addressed before closing this issue. |
@afbjorklund Thanks for your insight here. Would it be appropriate to open a separate issue for the k8s.io docs to cover the issue of building containers (that could be handled after 1.24) or it is okay to leave that to the runtime docs, outside of k8s.io? |
It is my understanding that kubernetes.io will not carry any documentation for any container runtime. Each runtime will document, how you do But please check with the SIG Docs members, I was just remotely following issues such as PR #32738. For minikube the situation is slightly different, since the container runtime is provided by the project too... |
If we wanted to explain how to build container images, that might be a topic better covered on the blog. If someone wants to, that could either be a survey of existing articles that already cover it (there must be hundreds), or a new article that also explains how to get your built container running in Kubernetes. I think that's a separate thing from what this issue is about: explaining how to change which container runtime your cluster uses. |
@chrisnegus I suggest marking this as done, and tracking a new issue (based on something I just spotted): The v1.24 docs recommend moving away from dockershim. I think we need to word it more strongly than that. Do you agree? |
We added Some users might prefer to run two VMs, one for building images and one (or more) for running the cluster. The only thing we need to explain, is that if they change their runtime - our "docker-env" stops working.
Hopefully the (minikube) error message is clear enough. |
I agree. I think we can close this issue, since the migration content has been addressed and we are well enough covered for image building documentation. I'll open a post-1.24 Issue to consider stronger wording to people for getting off of Dockershim. |
/close |
@chrisnegus: Closing this issue. In response to this:
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. |
Done. I opened Issue #32827. I think we should revisit it after 1.24. |
This is a Feature Request
As part of #25787
What would you like to be added
Have a
content_type: task
type of a documentation that describe the supported way to transition from one runtime to another. It may be a page under Dockershim deprecation tasks, upgrade doc, or an alternative location under "runtimes".Why is this needed
With the Dockershim deprecation, having a clear step by step documentation of replacing the runtime would be needed before moving to the next step of dockershim removal.
Comments
KEP: kubernetes/enhancements#2221
See discussions:
/sig node
/cc @neolit123
The text was updated successfully, but these errors were encountered: