From 8f79a6a70511ead96f7ef353208e1bd93ceab00c Mon Sep 17 00:00:00 2001 From: chentanjun <2799194073@qq.com> Date: Thu, 30 Jan 2020 15:26:13 +0800 Subject: [PATCH] sync zh-trans /docs/concepts/_index.md and /docs/concepts/example-concept-template.md (#18863) --- content/zh/docs/concepts/_index.md | 29 ++++------- .../docs/concepts/example-concept-template.md | 48 +++++++++++++++++-- 2 files changed, 52 insertions(+), 25 deletions(-) diff --git a/content/zh/docs/concepts/_index.md b/content/zh/docs/concepts/_index.md index 402bb3d7cf..80b7c7cfaa 100644 --- a/content/zh/docs/concepts/_index.md +++ b/content/zh/docs/concepts/_index.md @@ -37,10 +37,10 @@ To work with Kubernetes, you use *Kubernetes API objects* to describe your clust 要使用 Kubernetes,你需要用 *Kubernetes API 对象* 来描述集群的 *预期状态(desired state)* :包括你需要运行的应用或者负载,它们使用的镜像、副本数,以及所需网络和磁盘资源等等。你可以使用命令行工具 `kubectl` 来调用 Kubernetes API 创建对象,通过所创建的这些对象来配置预期状态。你也可以直接调用 Kubernetes API 和集群进行交互,设置或者修改预期状态。 -一旦你设置了你所需的目标状态,*Kubernetes 控制面(control plane)* 会通过 Pod 生命周期事件生成器( PLEG ),促成集群的当前状态符合其预期状态。为此,Kubernetes 会自动执行各类任务,比如运行或者重启容器、调整给定应用的副本数等等。Kubernetes 控制面由一组运行在集群上的进程组成: +一旦你设置了你所需的目标状态,*Kubernetes 控制面(control plane)* 会通过 Pod 生命周期事件生成器([PLEG](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/pod-lifecycle-event-generator.md)),促成集群的当前状态符合其预期状态。为此,Kubernetes 会自动执行各类任务,比如运行或者重启容器、调整给定应用的副本数等等。Kubernetes 控制面由一组运行在集群上的进程组成: -* **Kubernetes 主控组件(Master)** 包含三个进程,都运行在集群中的某个节上,通常这个节点被称为 master 节点。这些进程包括:[kube-apiserver](/docs/admin/kube-apiserver/)、[kube-controller-manager](/docs/admin/kube-controller-manager/) 和 [kube-scheduler](/docs/admin/kube-scheduler/)。 +* **Kubernetes 主控组件(Master)** 包含三个进程,都运行在集群中的某个节上,主控组件通常这个节点被称为 master 节点。这些进程包括:[kube-apiserver](/docs/admin/kube-apiserver/)、[kube-controller-manager](/docs/admin/kube-controller-manager/) 和 [kube-scheduler](/docs/admin/kube-scheduler/)。 * 集群中的每个非 master 节点都运行两个进程: * **[kubelet](/docs/admin/kubelet/)**,和 master 节点进行通信。 * **[kube-proxy](/docs/admin/kube-proxy/)**,一种网络代理,将 Kubernetes 的网络服务代理到每个节点上。 @@ -61,10 +61,10 @@ Once you've set your desired state, the *Kubernetes Control Plane* makes the clu ## Kubernetes 对象 -Kubernetes 包含若干抽象用来表示系统状态,包括:已部署的容器化应用和负载、与它们相关的网络和磁盘资源以及有关集群正在运行的其他操作的信息。这些抽象使用 Kubernetes API 对象来表示。参阅 [Kubernetes 对象概述](/docs/concepts/abstractions/overview/)以了解详细信息。 +Kubernetes 包含若干用来表示系统状态的抽象层,包括:已部署的容器化应用和负载、与它们相关的网络和磁盘资源以及有关集群正在运行的其他操作的信息。这些抽象使用 Kubernetes API 对象来表示。有关更多详细信息,请参阅[了解 Kubernetes 对象](/docs/concepts/overview/working-with-objects/kubernetes-objects/)。 -另外,Kubernetes 包含大量的被称作*控制器(controllers)* 的高级抽象。控制器基于基本对象构建并提供额外的功能和方便使用的特性。具体包括: +Kubernetes 也包含大量的被称作 [Controller](/docs/concepts/architecture/controller/) 的高级抽象。控制器基于基本对象构建并提供额外的功能和方便使用的特性。具体包括: -* [ReplicaSet](/docs/concepts/workloads/controllers/replicaset/) * [Deployment](/docs/concepts/workloads/controllers/deployment/) -* [StatefulSet](/docs/concepts/workloads/controllers/statefulset/) * [DaemonSet](/docs/concepts/workloads/controllers/daemonset/) +* [StatefulSet](/docs/concepts/workloads/controllers/statefulset/) +* [ReplicaSet](/docs/concepts/workloads/controllers/replicaset/) * [Job](/docs/concepts/workloads/controllers/jobs-run-to-completion/) - -#### 对象元数据 - - -* [注解](/docs/concepts/overview/working-with-objects/annotations/) {{% /capture %}} diff --git a/content/zh/docs/concepts/example-concept-template.md b/content/zh/docs/concepts/example-concept-template.md index e4096cca68..eadfd09445 100644 --- a/content/zh/docs/concepts/example-concept-template.md +++ b/content/zh/docs/concepts/example-concept-template.md @@ -1,13 +1,30 @@ --- title: 概念模板示例 -approvers: -- chenopis content_template: templates/concept +toc_hide: true --- + + {{% capture overview %}} -**注意:** 注意为新文档 [create an entry in the table of contents](/docs/home/contribute/write-new-topic/#creating-an-entry-in-the-table-of-contents) 。 + + +{{< note >}} +确保您的新文档也可以[在目录中创建一个条目](/docs/home/contribute/write-new-topic/#creating-an-entry-in-the-table-of-contents)。 +{{< /note >}} + + 本页解释了 ... @@ -15,22 +32,43 @@ content_template: templates/concept {{% capture body %}} + ## 了解 ... + Kubernetes 提供 ... + ## 使用 ... + 使用 ... {{% /capture %}} {{% capture whatsnext %}} + + **[可选章节]** -* 了解更多 [Writing a New Topic](/docs/home/contribute/write-new-topic/)。 -* 查看 [Using Page Templates - Concept template](/docs/home/contribute/page-templates/#concept_template) 了解如何使用本模板。 + + +* 了解有关[撰写新主题](/docs/home/contribute/write-new-topic/)的更多信息。 +* 有关如何使用此模板的信息,请参阅[使用页面模板 - 概念模板](/docs/home/contribute/page-templates/#concept_template)。 {{% /capture %}}