Skip to content

Commit

Permalink
[zh] sync migrating-from-dockershim/find-out-runtime-you-use.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Fang, Wei authored and KKtheGhost committed Jun 6, 2023
1 parent 442c832 commit 81a1394
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ node-3 Ready v1.16.15 docker://19.3.1
```
<!--
If your runtime shows as Docker Engine, you still might not be affected by the
removal of dockershim in Kubernetes v1.24. [Check the runtime
endpoint](#which-endpoint) to see if you use dockershim. If you don't use
dockershim, you aren't affected.
removal of dockershim in Kubernetes v1.24.
[Check the runtime endpoint](#which-endpoint) to see if you use dockershim.
If you don't use dockershim, you aren't affected.
For containerd, the output is similar to this:
-->
Expand Down Expand Up @@ -154,17 +154,18 @@ nodes.
* If your nodes use Kubernetes v1.23 and earlier and these flags aren't
present or if the `--container-runtime` flag is not `remote`,
you use the dockershim socket with Docker Engine.
you use the dockershim socket with Docker Engine. The `--container-runtime` command line
argument is not available in Kubernetes v1.27 and later.
* If the `--container-runtime-endpoint` flag is present, check the socket
name to find out which runtime you use. For example,
`unix:///run/containerd/containerd.sock` is the containerd endpoint.
-->
2. 在命令的输出中,查找 `--container-runtime``--container-runtime-endpoint` 标志。

* 如果 Kubernetes 集群版本是 v1.23 或者更早的版本,并且这两个参数不存在
或者 `container-runtime` 标志值不是 `remote`,则你在通过 dockershim 套接字使用
Docker Engine。
或者如果集群使用的 Docker engine 和 dockershim socket,则输出结果中 `--container-runtime` 不是 `remote`,
* 如果你的节点使用 Kubernetes v1.23 或更早的版本,这两个参数不存在
或者 `--container-runtime` 标志值不是 `remote`,则你在通过 dockershim 套接字使用
Docker Engine。
在 Kubernetes v1.27 及以后的版本中,`--container-runtime` 命令行参数不再可用。
* 如果设置了 `--container-runtime-endpoint` 参数,查看套接字名称即可得知当前使用的运行时。
如若套接字 `unix:///run/containerd/containerd.sock` 是 containerd 的端点。

Expand Down

0 comments on commit 81a1394

Please sign in to comment.