@@ -81,13 +81,13 @@ You can pass information from available Container-level fields using
81
81
<!--
82
82
### Information available via `fieldRef` {#downwardapi-fieldRef}
83
83
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
85
85
an environment variable or using a `downwardAPI` volume. The fields available
86
86
via either mechanism are:
87
87
-->
88
88
### 可通过 ` fieldRef ` 获得的信息 {#downwardapi-fieldRef}
89
89
90
- 对于大多数 Pod 级别的字段,你可以将它们作为环境变量或使用 ` downwardAPI ` 卷提供给容器。
90
+ 对于某些 Pod 级别的字段,你可以将它们作为环境变量或使用 ` downwardAPI ` 卷提供给容器。
91
91
通过这两种机制可用的字段有:
92
92
93
93
<!--
@@ -152,13 +152,29 @@ The following information is available through environment variables
152
152
` status.hostIP `
153
153
: Pod 所在节点的主 IP 地址
154
154
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
+
155
164
<!--
156
165
`status.podIP`
157
166
: the pod's primary IP address (usually, its IPv4 address)
158
167
-->
159
168
` status.podIP `
160
169
: Pod 的主 IP 地址(通常是其 IPv4 地址)
161
170
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
+
162
178
<!--
163
179
The following information is available through a `downwardAPI` volume
164
180
`fieldRef`, **but not as environment variables**:
0 commit comments