Skip to content

zh-trans: content/zh/docs/concepts/overview/working-with-objects/comm…#13918

Merged
k8s-ci-robot merged 2 commits intokubernetes:release-1.12from
pigletfly:common-labels
Jun 9, 2019
Merged

zh-trans: content/zh/docs/concepts/overview/working-with-objects/comm…#13918
k8s-ci-robot merged 2 commits intokubernetes:release-1.12from
pigletfly:common-labels

Conversation

@pigletfly
Copy link
Copy Markdown
Contributor

No description provided.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 20, 2019
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 20, 2019

Deploy preview for k8s-v1-12 processing.

Building with commit 36c1228

https://app.netlify.com/sites/k8s-v1-12/deploys/5ccf0756916f090007faad46

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. language/zh Issues or PRs related to Chinese language labels Apr 20, 2019
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 对象。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
您可以使用 kubectl 和 dashboard 之外的更多工具来可视化和管理 Kubernetes 对象。
除了 kubectl 和 dashboard 之外,您可以其他工具来可视化和管理 Kubernetes 对象。

objects in a common manner that all tools can understand.
-->
您可以使用 kubectl 和 dashboard 之外的更多工具来可视化和管理 Kubernetes 对象。
一组通用的标签允许工具以交互操作的方式,用所有工具都能理解的通用方式进行描述对象。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
一组通用的标签允许工具以交互操作的方式,用所有工具都能理解的通用方式进行描述对象
一组通用的标签可以让多个工具之间互操作,用所有工具都能理解的通用方式描述对象

Instead, applications are informal and described with metadata. The definition of
what an application contains is loose.
-->
元数据围绕 _application_ 的概念进行组织。Kubernetes 不是
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
元数据围绕 _application_ 的概念进行组织。Kubernetes 不是
元数据围绕 _应用(application)_ 的概念进行组织。Kubernetes 不是

-->
元数据围绕 _application_ 的概念进行组织。Kubernetes 不是
平台即服务(PaaS),没有或强制执行正式的应用程序概念。
相反,应用程序是非正式的,并使用元数据进行描述。应用程序包含的定义是松散的。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
相反,应用程序是非正式的,并使用元数据进行描述。应用程序包含的定义是松散的
相反,应用是非正式的资源并使用元数据进行描述。对应用中应该包含什么的定义是宽松的

without a prefix are private to users. The shared prefix ensures that shared labels
do not interfere with custom user labels.
-->
共享标签和注释共享一个共同的前缀:`app.kubernetes.io`。标签没有前缀的用户是私有的。共享前缀可确保共享标签,不要干扰自定义用户标签。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
共享标签和注释共享一个共同的前缀`app.kubernetes.io`标签没有前缀的用户是私有的。共享前缀可确保共享标签,不要干扰自定义用户标签
共享标签和注解都使用同一个前缀`app.kubernetes.io`没有前缀的标签是用户私有的。共享前缀可以确保共享标签不会干扰用户自定义的标签

<!--
To illustrate these labels in action, consider the following StatefulSet object:
-->
要说明这些标签的实际使用情况,请看下面的 StatefulSet 对象:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
要说明这些标签的实际使用情况,请看下面的 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.
-->
## 应用程序和应用的实例
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 应用程序和应用的实例
## 应用和应用实例

-->
## 应用程序和应用的实例

应用程序可以在 Kubernetes 集群中安装一次或多次,在某些情况下,相同的命名空间。例如,可以不止一次地为不同的站点安装不同的 wordpress。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
应用程序可以在 Kubernetes 集群中安装一次或多次在某些情况下,相同的命名空间。例如,可以不止一次地为不同的站点安装不同的 wordpress
应用可以在 Kubernetes 集群中安装一次或多次在某些情况下,可以安装在同一命名空间中
例如,不同的站点使用不同的 wordpress 安装实例时,可以不止一次地安装 wordpress。


应用程序可以在 Kubernetes 集群中安装一次或多次,在某些情况下,相同的命名空间。例如,可以不止一次地为不同的站点安装不同的 wordpress。

应用程序的名称和实例名称分别记录。例如,WordPress 有一个 `app.kubernetes.io/name` 的 `wordpress`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
应用程序的名称和实例名称分别记录。例如,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`。这使应用程序和应用程序的实例成为可能是可识别的。应用程序的每个实例都必须具有唯一的名称。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
实例名称,表示为 `app.kubernetes.io/instance` 值为 `wordpress-abcxzy`。这使应用程序和应用程序的实例成为可能是可识别的。应用程序的每个实例都必须具有唯一的名称
这使得应用和应用实例都是可识别的。应用的每个实例都必须具有唯一的名称

<!--
The `Deployment` is used to oversee the pods running the application itself.
-->
`Deployment` 用于监督运行应用程序本身的 pods。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Deployment` 用于监督运行应用程序本身的 pods。
下面的 `Deployment` 用于监督运行应用本身的 pods。

<!--
The `Service` is used to expose the application.
-->
`Service` 用于暴露应用程序。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Service` 用于暴露应用程序
下面的 `Service` 用于暴露应用


The start to the following `Deployment` is used for WordPress:
-->
考虑一个稍微复杂的应用程序:一个使用 Helm 安装 Web 应用程序(WordPress),其中
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
考虑一个稍微复杂的应用程序:一个使用 Helm 安装 Web 应用程序(WordPress),其中
考虑一个稍微复杂的应用:一个使用 Helm 安装的 Web 应用(WordPress),其中

@tengqm
Copy link
Copy Markdown
Contributor

tengqm commented May 6, 2019

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 6, 2019
@markthink
Copy link
Copy Markdown

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 9, 2019
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 5d8e1dd into kubernetes:release-1.12 Jun 9, 2019
@pigletfly pigletfly deleted the common-labels branch June 19, 2019 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/zh Issues or PRs related to Chinese language lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants