From 21558d676a2c9dbe41af92c7e122ed55ae947829 Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Fri, 7 Jan 2022 21:10:41 +0800 Subject: [PATCH] [zh] Translate find out runtime page --- .../find-out-runtime-you-use.md | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 content/zh/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use.md diff --git a/content/zh/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use.md b/content/zh/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use.md new file mode 100644 index 0000000000..7a6f3c8df9 --- /dev/null +++ b/content/zh/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use.md @@ -0,0 +1,83 @@ +--- +title: 查明节点上所使用的容器运行时 +content_type: task +weight: 10 +--- + + + + + +本页面描述查明集群中节点所使用的[容器运行时](/zh/docs/setup/production-environment/container-runtimes/) +的步骤。 + + +取决于你运行集群的方式,节点所使用的容器运行时可能是事先配置好的, +也可能需要你来配置。如果你在使用托管的 Kubernetes 服务, +可能存在特定于厂商的方法来检查节点上配置的容器运行时。 +本页描述的方法应该在能够执行 `kubectl` 的场合下都可以工作。 + +## {{% heading "prerequisites" %}} + + +安装并配置 `kubectl`。参见[安装工具](/zh/docs/tasks/tools/#kubectl) 节了解详情。 + + +## 查明节点所使用的容器运行时 + +使用 `kubectl` 来读取并显示节点信息: + +```shell +kubectl get nodes -o wide +``` + + +输出如下面所示。`CONTAINER-RUNTIME` 列给出容器运行时及其版本。 + +```none +# For dockershim +NAME STATUS VERSION CONTAINER-RUNTIME +node-1 Ready v1.16.15 docker://19.3.1 +node-2 Ready v1.16.15 docker://19.3.1 +node-3 Ready v1.16.15 docker://19.3.1 +``` + +```none +# For containerd +NAME STATUS VERSION CONTAINER-RUNTIME +node-1 Ready v1.19.6 containerd://1.4.1 +node-2 Ready v1.19.6 containerd://1.4.1 +node-3 Ready v1.19.6 containerd://1.4.1 +``` + + +你可以在[容器运行时](/zh/docs/setup/production-environment/container-runtimes/) +页面找到与容器运行时相关的更多信息。 +