From d60462e1cc320b3860c42344a81b239827b68506 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 30 May 2021 01:51:40 -0400 Subject: [PATCH 1/3] zh: sync concepts/overview/what-is-kubernetes.md Signed-off-by: Rui Chen --- .../concepts/overview/what-is-kubernetes.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/content/zh/docs/concepts/overview/what-is-kubernetes.md b/content/zh/docs/concepts/overview/what-is-kubernetes.md index b976570edb..761d4736c1 100644 --- a/content/zh/docs/concepts/overview/what-is-kubernetes.md +++ b/content/zh/docs/concepts/overview/what-is-kubernetes.md @@ -35,10 +35,11 @@ Kubernetes 是一个可移植的、可扩展的开源平台,用于管理容器 Kubernetes 拥有一个庞大且快速增长的生态系统。Kubernetes 的服务、支持和工具广泛可用。 -名称 **Kubernetes** 源于希腊语,意为“舵手”或“飞行员”。Google 在 2014 年开源了 Kubernetes 项目。 -Kubernetes 建立在 [Google 在大规模运行生产工作负载方面拥有十几年的经验](https://research.google/pubs/pub43438) +**Kubernetes** 这个名字源于希腊语,意为“舵手”或“飞行员”。k8s 这个缩写是因为 k 和 s 之间有八个字符的关系。 +Google 在 2014 年开源了 Kubernetes 项目。Kubernetes 建立在 +[Google 在大规模运行生产工作负载方面拥有十几年的经验](https://research.google/pubs/pub43438) 的基础上,结合了社区中最好的想法和实践。 * **服务发现和负载均衡** @@ -164,7 +165,7 @@ Kubernetes can expose a container using the DNS name or using their own IP addre Kubernetes 可以负载均衡并分配网络流量,从而使部署稳定。 * **存储编排** @@ -172,7 +173,7 @@ Kubernetes allows you to automatically mount a storage system of your choice, su Kubernetes 允许你自动挂载你选择的存储系统,例如本地存储、公共云提供商等。 * **自动部署和回滚** @@ -182,7 +183,7 @@ You can describe the desired state for your deployed containers using Kubernetes 删除现有容器并将它们的所有资源用于新容器。 * **自动完成装箱计算** @@ -191,7 +192,7 @@ Kubernetes allows you to specify how much CPU and memory (RAM) each container ne 当容器指定了资源请求时,Kubernetes 可以做出更好的决策来管理容器的资源。 * **自我修复** @@ -200,7 +201,7 @@ Kubernetes restarts containers that fail, replaces containers, kills containers 运行状况检查的容器,并且在准备好服务之前不将其通告给客户端。 * **密钥与配置管理** From eaa215eee1f51c7aea274a62a7a14dae22266a26 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 30 May 2021 02:21:08 -0400 Subject: [PATCH 2/3] sync concepts/overview/working-with-objects/common-labels.md Signed-off-by: Rui Chen --- .../overview/working-with-objects/common-labels.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/content/zh/docs/concepts/overview/working-with-objects/common-labels.md b/content/zh/docs/concepts/overview/working-with-objects/common-labels.md index 0d0ecbd8b1..664c9ed096 100644 --- a/content/zh/docs/concepts/overview/working-with-objects/common-labels.md +++ b/content/zh/docs/concepts/overview/working-with-objects/common-labels.md @@ -68,7 +68,8 @@ on every resource object. | `app.kubernetes.io/version` | The current version of the application (e.g., a semantic version, revision hash, etc.) | `5.7.21` | string | | `app.kubernetes.io/component` | The component within the architecture | `database` | string | | `app.kubernetes.io/part-of` | The name of a higher level application this one is part of | `wordpress` | string | -| `app.kubernetes.io/managed-by` | The tool being used to manage the operation of an application | `helm` | string | +| `app.kubernetes.io/managed-by` | The tool being used to manage the operation of an application | `helm` | string | +| `app.kubernetes.io/created-by` | The controller/user who created this resource | `controller-manager` | string | --> | 键 | 描述 | 示例 | 类型 | | ----------------------------------- | --------------------- | -------- | ---- | @@ -77,7 +78,8 @@ on every resource object. | `app.kubernetes.io/version` | 应用程序的当前版本(例如,语义版本,修订版哈希等) | `5.7.21` | 字符串 | | `app.kubernetes.io/component` | 架构中的组件 | `database` | 字符串 | | `app.kubernetes.io/part-of` | 此级别的更高级别应用程序的名称 | `wordpress` | 字符串 | -| `app.kubernetes.io/managed-by` | 用于管理应用程序的工具 | `helm` | 字符串 | +| `app.kubernetes.io/managed-by` | 用于管理应用程序的工具 | `helm` | 字符串 | +| `app.kubernetes.io/created-by` | 创建该资源的控制器或者用户 | `controller-manager` | 字符串 | @@ -94,6 +96,7 @@ metadata: app.kubernetes.io/component: database app.kubernetes.io/part-of: wordpress app.kubernetes.io/managed-by: helm + app.kubernetes.io/created-by: controller-manager ``` 使用 MySQL `StatefulSet` 和 `Service`,您会注意到有关 MySQL 和 Wordpress 的信息,包括更广泛的应用程序。 - - From d3217b35d5d5b2be15e3ac4cf817aa35f5bdb5fe Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 30 May 2021 02:21:53 -0400 Subject: [PATCH 3/3] resync concepts/overview/working-with-objects/namespaces.md Signed-off-by: Rui Chen --- .../concepts/overview/working-with-objects/namespaces.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/content/zh/docs/concepts/overview/working-with-objects/namespaces.md b/content/zh/docs/concepts/overview/working-with-objects/namespaces.md index 38f947f6d1..6966d7afb8 100644 --- a/content/zh/docs/concepts/overview/working-with-objects/namespaces.md +++ b/content/zh/docs/concepts/overview/working-with-objects/namespaces.md @@ -33,13 +33,13 @@ Kubernetes 支持多个虚拟集群,它们底层依赖于同一个物理集群 Namespaces are intended for use in environments with many users spread across multiple teams, or projects. For clusters with a few to tens of users, you should not need to create or think about namespaces at all. Start using namespaces when you -need the features they provide. +need the features they provide. --> 名字空间适用于存在很多跨多个团队或项目的用户的场景。对于只有几到几十个用户的集群,根本不需要创建或考虑名字空间。当需要名称空间提供的功能时,请开始使用它们。 名字空间为名称提供了一个范围。资源的名称需要在名字空间内是唯一的,但不能跨名字空间。 @@ -71,7 +71,7 @@ for namespaces](/docs/tasks/administer-cluster/namespaces/). 名字空间的创建和删除在[名字空间的管理指南文档](/zh/docs/tasks/administer-cluster/namespaces/)描述。 {{< note >}} 避免使用前缀 `kube-` 创建名字空间,因为它是为 Kubernetes 系统名字空间保留的。 @@ -216,7 +216,7 @@ Kubernetes 控制面会为所有名字空间设置一个不可变更的 `kubernetes.io/metadata.name`,只要 `NamespaceDefaultLabelName` 这一 [特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/) 被启用。标签的值是名字空间的名称。 - + ## {{% heading "whatsnext" %}} * 进一步了解[建立新的名字空间](/zh/docs/tasks/administer-cluster/namespaces/#creating-a-new-namespace)。 * 进一步了解[删除名字空间](/zh/docs/tasks/administer-cluster/namespaces/#deleting-a-namespace)。 -