You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md
+34-23Lines changed: 34 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,28 @@ weight: 8
4
4
content_type: task
5
5
---
6
6
7
-
This task outlines the steps needed to update your container runtime to containerd from Docker. It is applicable for cluster operators running Kubernetes 1.23 or earlier. Also this covers an example scenario for migrating from dockershim to containerd and alternative container runtimes can be picked from this [page](/docs/setup/production-environment/container-runtimes/).
7
+
This task outlines the steps needed to update your container runtime to containerd from Docker. It
8
+
is applicable for cluster operators running Kubernetes 1.23 or earlier. Also this covers an
9
+
example scenario for migrating from dockershim to containerd and alternative container runtimes
10
+
can be picked from this [page](/docs/setup/production-environment/container-runtimes/).
8
11
9
12
## {{% heading "prerequisites" %}}
10
13
11
14
{{% thirdparty-content %}}
12
15
13
-
Install containerd. For more information see, [containerd's installation documentation](https://containerd.io/docs/getting-started/) and for specific prerequisite follow [this](/docs/setup/production-environment/container-runtimes/#containerd).
containerd config default | sudo tee /etc/containerd/config.toml
44
54
```
45
-
46
-
3. Restart containerd:
55
+
1. Restart containerd:
47
56
48
57
```shell
49
58
sudo systemctl restart containerd
50
59
```
51
-
52
60
{{% /tab %}}
53
61
{{% tab name="Windows (PowerShell)" %}}
54
62
55
-
Start a Powershell session, set `$Version` to the desired version (ex: `$Version="1.4.3"`), and then run the following commands:
63
+
Start a Powershell session, set `$Version` to the desired version (ex: `$Version="1.4.3"`), and
64
+
then run the following commands:
56
65
57
66
1. Download containerd:
58
67
@@ -89,24 +98,25 @@ Start a Powershell session, set `$Version` to the desired version (ex: `$Version
89
98
90
99
## Configure the kubelet to use containerd as its container runtime
91
100
92
-
Edit the file `/var/lib/kubelet/kubeadm-flags.env` and add the containerd runtime to the flags. `--container-runtime=remote` and `--container-runtime-endpoint=unix:///run/containerd/containerd.sock"`
101
+
Edit the file `/var/lib/kubelet/kubeadm-flags.env` and add the containerd runtime to the flags.
0 commit comments