From abcba5ce5767bfec6c3f820bf48f01feac6dc330 Mon Sep 17 00:00:00 2001 From: Guangwen Feng Date: Fri, 17 Mar 2023 15:49:04 +0800 Subject: [PATCH] [zh-cn] sync task files of task-8 Signed-off-by: Guangwen Feng --- .../zh-cn/docs/tasks/configure-pod-container/_index.md | 8 +++++++- .../tasks/configure-pod-container/assign-pods-nodes.md | 10 +++++----- .../configure-pod-container/configure-runasusername.md | 4 ++-- .../configure-pod-container/share-process-namespace.md | 4 ++-- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/content/zh-cn/docs/tasks/configure-pod-container/_index.md b/content/zh-cn/docs/tasks/configure-pod-container/_index.md index 4c71a44d89..fba45f2845 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/_index.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/_index.md @@ -1,5 +1,11 @@ --- title: "配置 Pods 和容器" -weight: 20 +weight: 30 description: 对 Pod 和容器执行常见的配置任务。 --- + + diff --git a/content/zh-cn/docs/tasks/configure-pod-container/assign-pods-nodes.md b/content/zh-cn/docs/tasks/configure-pod-container/assign-pods-nodes.md index 418db6611e..98dffd4d14 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/assign-pods-nodes.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/assign-pods-nodes.md @@ -1,12 +1,12 @@ --- title: 将 Pod 分配给节点 content_type: task -weight: 120 +weight: 150 --- @@ -41,7 +41,7 @@ Kubernetes cluster. --> 输出类似如下: - ``` + ```shell NAME STATUS ROLES AGE VERSION LABELS worker0 Ready 1d v1.13.0 ...,kubernetes.io/hostname=worker0 worker1 Ready 1d v1.13.0 ...,kubernetes.io/hostname=worker1 @@ -76,7 +76,7 @@ Kubernetes cluster. --> 输出类似如下: - ``` + ```shell NAME STATUS ROLES AGE VERSION LABELS worker0 Ready 1d v1.13.0 ...,disktype=ssd,kubernetes.io/hostname=worker0 worker1 Ready 1d v1.13.0 ...,kubernetes.io/hostname=worker1 @@ -126,7 +126,7 @@ a `disktype=ssd` label. --> 输出类似如下: - ``` + ```shell NAME READY STATUS RESTARTS AGE IP NODE nginx 1/1 Running 0 13s 10.200.0.4 worker0 ``` diff --git a/content/zh-cn/docs/tasks/configure-pod-container/configure-runasusername.md b/content/zh-cn/docs/tasks/configure-pod-container/configure-runasusername.md index 65df06ff34..80554e3b96 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/configure-runasusername.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/configure-runasusername.md @@ -1,13 +1,13 @@ --- title: 为 Windows 的 Pod 和容器配置 RunAsUserName content_type: task -weight: 20 +weight: 40 --- diff --git a/content/zh-cn/docs/tasks/configure-pod-container/share-process-namespace.md b/content/zh-cn/docs/tasks/configure-pod-container/share-process-namespace.md index fe3fa6f81e..1358defcfb 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/share-process-namespace.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/share-process-namespace.md @@ -1,7 +1,7 @@ --- title: 在 Pod 中的容器之间共享进程命名空间 content_type: task -weight: 160 +weight: 200 ---