zh-trans: content/zh/docs/concepts/overview/working-with-objects/comm…#13918
zh-trans: content/zh/docs/concepts/overview/working-with-objects/comm…#13918k8s-ci-robot merged 2 commits intokubernetes:release-1.12from
Conversation
|
Deploy preview for k8s-v1-12 processing. Building with commit 36c1228 https://app.netlify.com/sites/k8s-v1-12/deploys/5ccf0756916f090007faad46 |
| the dashboard. A common set of labels allows tools to work interoperably, describing | ||
| objects in a common manner that all tools can understand. | ||
| --> | ||
| 您可以使用 kubectl 和 dashboard 之外的更多工具来可视化和管理 Kubernetes 对象。 |
There was a problem hiding this comment.
| 您可以使用 kubectl 和 dashboard 之外的更多工具来可视化和管理 Kubernetes 对象。 | |
| 除了 kubectl 和 dashboard 之外,您可以其他工具来可视化和管理 Kubernetes 对象。 |
| objects in a common manner that all tools can understand. | ||
| --> | ||
| 您可以使用 kubectl 和 dashboard 之外的更多工具来可视化和管理 Kubernetes 对象。 | ||
| 一组通用的标签允许工具以交互操作的方式,用所有工具都能理解的通用方式进行描述对象。 |
There was a problem hiding this comment.
| 一组通用的标签允许工具以交互操作的方式,用所有工具都能理解的通用方式进行描述对象。 | |
| 一组通用的标签可以让多个工具之间互操作,用所有工具都能理解的通用方式描述对象。 |
| Instead, applications are informal and described with metadata. The definition of | ||
| what an application contains is loose. | ||
| --> | ||
| 元数据围绕 _application_ 的概念进行组织。Kubernetes 不是 |
There was a problem hiding this comment.
| 元数据围绕 _application_ 的概念进行组织。Kubernetes 不是 | |
| 元数据围绕 _应用(application)_ 的概念进行组织。Kubernetes 不是 |
| --> | ||
| 元数据围绕 _application_ 的概念进行组织。Kubernetes 不是 | ||
| 平台即服务(PaaS),没有或强制执行正式的应用程序概念。 | ||
| 相反,应用程序是非正式的,并使用元数据进行描述。应用程序包含的定义是松散的。 |
There was a problem hiding this comment.
| 相反,应用程序是非正式的,并使用元数据进行描述。应用程序包含的定义是松散的。 | |
| 相反,应用是非正式的资源并使用元数据进行描述。对应用中应该包含什么的定义是宽松的。 |
| without a prefix are private to users. The shared prefix ensures that shared labels | ||
| do not interfere with custom user labels. | ||
| --> | ||
| 共享标签和注释共享一个共同的前缀:`app.kubernetes.io`。标签没有前缀的用户是私有的。共享前缀可确保共享标签,不要干扰自定义用户标签。 |
There was a problem hiding this comment.
| 共享标签和注释共享一个共同的前缀:`app.kubernetes.io`。标签没有前缀的用户是私有的。共享前缀可确保共享标签,不要干扰自定义用户标签。 | |
| 共享标签和注解都使用同一个前缀:`app.kubernetes.io`。没有前缀的标签是用户私有的。共享前缀可以确保共享标签不会干扰用户自定义的标签。 |
| <!-- | ||
| To illustrate these labels in action, consider the following StatefulSet object: | ||
| --> | ||
| 要说明这些标签的实际使用情况,请看下面的 StatefulSet 对象: |
There was a problem hiding this comment.
| 要说明这些标签的实际使用情况,请看下面的 StatefulSet 对象: | |
| 为说明这些标签的实际使用情况,请看下面的 StatefulSet 对象: |
| `wordpress-abcxzy`. This enables the application and instance of the application | ||
| to be identifiable. Every instance of an application must have a unique name. | ||
| --> | ||
| ## 应用程序和应用的实例 |
There was a problem hiding this comment.
| ## 应用程序和应用的实例 | |
| ## 应用和应用实例 |
| --> | ||
| ## 应用程序和应用的实例 | ||
|
|
||
| 应用程序可以在 Kubernetes 集群中安装一次或多次,在某些情况下,相同的命名空间。例如,可以不止一次地为不同的站点安装不同的 wordpress。 |
There was a problem hiding this comment.
| 应用程序可以在 Kubernetes 集群中安装一次或多次,在某些情况下,相同的命名空间。例如,可以不止一次地为不同的站点安装不同的 wordpress。 | |
| 应用可以在 Kubernetes 集群中安装一次或多次。在某些情况下,可以安装在同一命名空间中。 | |
| 例如,不同的站点使用不同的 wordpress 安装实例时,可以不止一次地安装 wordpress。 |
|
|
||
| 应用程序可以在 Kubernetes 集群中安装一次或多次,在某些情况下,相同的命名空间。例如,可以不止一次地为不同的站点安装不同的 wordpress。 | ||
|
|
||
| 应用程序的名称和实例名称分别记录。例如,WordPress 有一个 `app.kubernetes.io/name` 的 `wordpress` |
There was a problem hiding this comment.
| 应用程序的名称和实例名称分别记录。例如,WordPress 有一个 `app.kubernetes.io/name` 的 `wordpress` | |
| 应用的名称和实例的名称是分别记录的。例如,某 WordPress 实例的 `app.kubernetes.io/name` 为 `wordpress`, | |
| 而其实例名称表现为 `app.kubernetes.io/instance` 的属性值 `wordpress-abcxzy`。 |
| 应用程序可以在 Kubernetes 集群中安装一次或多次,在某些情况下,相同的命名空间。例如,可以不止一次地为不同的站点安装不同的 wordpress。 | ||
|
|
||
| 应用程序的名称和实例名称分别记录。例如,WordPress 有一个 `app.kubernetes.io/name` 的 `wordpress` | ||
| 实例名称,表示为 `app.kubernetes.io/instance` 值为 `wordpress-abcxzy`。这使应用程序和应用程序的实例成为可能是可识别的。应用程序的每个实例都必须具有唯一的名称。 |
There was a problem hiding this comment.
| 实例名称,表示为 `app.kubernetes.io/instance` 值为 `wordpress-abcxzy`。这使应用程序和应用程序的实例成为可能是可识别的。应用程序的每个实例都必须具有唯一的名称。 | |
| 这使得应用和应用实例都是可识别的。应用的每个实例都必须具有唯一的名称。 |
| <!-- | ||
| The `Deployment` is used to oversee the pods running the application itself. | ||
| --> | ||
| `Deployment` 用于监督运行应用程序本身的 pods。 |
There was a problem hiding this comment.
| `Deployment` 用于监督运行应用程序本身的 pods。 | |
| 下面的 `Deployment` 用于监督运行应用本身的 pods。 |
| <!-- | ||
| The `Service` is used to expose the application. | ||
| --> | ||
| `Service` 用于暴露应用程序。 |
There was a problem hiding this comment.
| `Service` 用于暴露应用程序。 | |
| 下面的 `Service` 用于暴露应用。 |
|
|
||
| The start to the following `Deployment` is used for WordPress: | ||
| --> | ||
| 考虑一个稍微复杂的应用程序:一个使用 Helm 安装 Web 应用程序(WordPress),其中 |
There was a problem hiding this comment.
| 考虑一个稍微复杂的应用程序:一个使用 Helm 安装 Web 应用程序(WordPress),其中 | |
| 考虑一个稍微复杂的应用:一个使用 Helm 安装的 Web 应用(WordPress),其中 |
|
/approve |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markthink, tengqm The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.