One of the most powerful features of Kubernetes is its modularity. This makes it easy to change your container runtime. The process to change the default container runtime on a node is straightforward:
- Install your new container runtime.
- Update your kubelet configuration with the extra arguments
--container-runtime=remote
and--container-runtime-endpoint=unix:///run/containerd/containerd.sock
(orunix:///var/run/crio/crio.sock
if you’re using CRI-O). - Drain the node to reschedule any Kubernetes workloads to other nodes.
- Restart the kubelet service.
- Uncordon the node to allow Kubernetes to schedule workloads on the updated node.
For specific steps, see the cri-o documentation or the containerd documentation.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article