Merge pull request #41547 from asa3311/sync-zh-6
[zh-cn] sync kubelet object environment-variable-expose-pod-informationpull/41575/head
commit
aa4854cb32
|
@ -356,10 +356,9 @@ kubelet 将从此标志所指的文件中加载其初始配置。此路径可以
|
|||
<tr>
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
||||
<!--
|
||||
<Warning: Beta feature> Set the maximum number of container log files that can be present for a container. The number must be >= 2. This flag can only be used with <code>--container-runtime=remote</code>. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
|
||||
<Warning: Beta feature> Set the maximum number of container log files that can be present for a container. The number must be >= 2. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
|
||||
-->
|
||||
【警告:Beta 特性】设置容器的日志文件个数上限。此值必须大于等于 2。
|
||||
此标志只能与 <code>--container-runtime=remote</code> 标志一起使用。
|
||||
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
|
||||
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
|
||||
</td>
|
||||
|
@ -371,10 +370,9 @@ kubelet 将从此标志所指的文件中加载其初始配置。此路径可以
|
|||
<tr>
|
||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
||||
<!--
|
||||
<Warning: Beta feature> Set the maximum size (e.g. <code>10Mi</code>) of container log file before it is rotated. This flag can only be used with <code>--container-runtime=remote</code>. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
|
||||
<Warning: Beta feature> Set the maximum size (e.g. <code>10Mi</code>) of container log file before it is rotated. (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's <code>--config</code> flag. See <a href="https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> for more information.)
|
||||
-->
|
||||
【警告:Beta 特性】设置容器日志文件在轮换生成新文件时之前的最大值(例如,<code>10Mi</code>)。
|
||||
此标志只能与 <code>--container-runtime=remote</code> 标志一起使用。
|
||||
(已弃用:应在 <code>--config</code> 所给的配置文件中进行设置。
|
||||
请参阅 <a href="https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/kubelet-config-file/">kubelet-config-file</a> 了解更多信息。)
|
||||
</td>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
title: 对象(Object)
|
||||
id: object
|
||||
date: 2020-10-12
|
||||
full_link: /zh-cn/docs/concepts/overview/working-with-objects/kubernetes-objects/#kubernetes-objects
|
||||
full_link: /zh-cn/docs/concepts/overview/working-with-objects/#kubernetes-objects
|
||||
short_description: >
|
||||
Kubernetes 系统中的实体,代表了集群的部分状态。
|
||||
aka:
|
||||
|
@ -13,7 +13,7 @@ tags:
|
|||
title: Object
|
||||
id: object
|
||||
date: 2020-10-12
|
||||
full_link: https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/#kubernetes-objects
|
||||
full_link: /docs/concepts/overview/working-with-objects/#kubernetes-objects
|
||||
short_description: >
|
||||
A entity in the Kubernetes system, representing part of the state of your cluster.
|
||||
aka:
|
||||
|
|
|
@ -26,6 +26,11 @@ In Kubernetes, there are two ways to expose Pod and container fields to a runnin
|
|||
|
||||
Together, these two ways of exposing Pod and container fields are called the
|
||||
downward API.
|
||||
|
||||
As Services are the primary mode of communication between containerized applications managed by Kubernetes,
|
||||
it is helpful to be able to discover them at runtime.
|
||||
|
||||
Read more about accessing Services [here](/docs/tutorials/services/connect-applications-service/#accessing-the-service).
|
||||
-->
|
||||
在 Kubernetes 中有两种方式可以将 Pod 和容器字段呈现给运行中的容器:
|
||||
|
||||
|
@ -34,6 +39,11 @@ downward API.
|
|||
|
||||
这两种呈现 Pod 和容器字段的方式统称为 downward API。
|
||||
|
||||
Service 是 Kubernetes 管理的容器化应用之间的主要通信模式,因此在运行时能发现这些 Service 是很有帮助的。
|
||||
|
||||
在[这里](/zh-cn/docs/tutorials/services/connect-applications-service/#accessing-the-service)
|
||||
阅读更多关于访问 Service 的信息。
|
||||
|
||||
## {{% heading "prerequisites" %}}
|
||||
|
||||
{{< include "task-tutorial-prereqs.md" >}}
|
||||
|
|
Loading…
Reference in New Issue