Skip to content

Commit 1a50f23

Browse files
author
KKtheGhost
committed
[zh] sync concepts/workloads/pods/downward-api.md
1 parent 6f562f6 commit 1a50f23

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

content/zh-cn/docs/concepts/workloads/pods/downward-api.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ You can pass information from available Container-level fields using
8181
<!--
8282
### Information available via `fieldRef` {#downwardapi-fieldRef}
8383
84-
For most Pod-level fields, you can provide them to a container either as
84+
For some Pod-level fields, you can provide them to a container either as
8585
an environment variable or using a `downwardAPI` volume. The fields available
8686
via either mechanism are:
8787
-->
8888
### 可通过 `fieldRef` 获得的信息 {#downwardapi-fieldRef}
8989

90-
对于大多数 Pod 级别的字段,你可以将它们作为环境变量或使用 `downwardAPI` 卷提供给容器。
90+
对于某些 Pod 级别的字段,你可以将它们作为环境变量或使用 `downwardAPI` 卷提供给容器。
9191
通过这两种机制可用的字段有:
9292

9393
<!--
@@ -152,13 +152,29 @@ The following information is available through environment variables
152152
`status.hostIP`
153153
: Pod 所在节点的主 IP 地址
154154

155+
<!--
156+
`status.hostIPs`
157+
: the IP addresses is a dual-stack version of `status.hostIP`, the first is always the same as `status.hostIP`.
158+
The field is available if you enable the `PodHostIPs` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
159+
-->
160+
`status.hostIPs`
161+
: 这组 IP 地址是 `status.hostIP` 的双协议栈版本,第一个 IP 始终与 `status.hostIP` 相同。
162+
该字段在启用了 `PodHostIPs` [特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)后可用。
163+
155164
<!--
156165
`status.podIP`
157166
: the pod's primary IP address (usually, its IPv4 address)
158167
-->
159168
`status.podIP`
160169
: Pod 的主 IP 地址(通常是其 IPv4 地址)
161170

171+
<!--
172+
`status.podIPs`
173+
: the IP addresses is a dual-stack version of `status.podIP`, the first is always the same as `status.podIP`
174+
-->
175+
`status.podIPs`
176+
: 这组 IP 地址是 `status.podIP` 的双协议栈版本, 第一个 IP 始终与 `status.podIP` 相同。
177+
162178
<!--
163179
The following information is available through a `downwardAPI` volume
164180
`fieldRef`, **but not as environment variables**:

0 commit comments

Comments
 (0)