Skip to content

Commit 063e320

Browse files
committed
sync configure-pod-configmap define-environment-variable-container horizontal-pod-autoscale
1 parent 08c5377 commit 063e320

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

content/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,9 @@ or move it into the trash can / deleted files location.
15111511
<!--
15121512
* Follow a real world example of
15131513
[Configuring Redis using a ConfigMap](/docs/tutorials/configuration/configure-redis-using-configmap/).
1514+
* Follow an example of [Updating configuration via a ConfigMap](/docs/tutorials/configuration/updating-configuration-via-a-configmap/).
15141515
-->
15151516
* 浏览[使用 ConfigMap 配置 Redis](/zh-cn/docs/tutorials/configuration/configure-redis-using-configmap/)
15161517
真实示例。
1518+
* 参照一个[通过 ConfigMap 更新配置](/zh-cn/docs/tutorials/configuration/updating-configuration-via-a-configmap/)
1519+
的示例.

content/zh-cn/docs/tasks/inject-data-application/define-environment-variable-container.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ as a CLI argument passed to the `env-print-demo` container.
173173
环境变量 `MESSAGE` 将所有这些环境变量的集合组合起来,
174174
然后再传递给容器 `env-print-demo` 的 CLI 参数中使用。
175175
176+
<!--
177+
Environment variable names consist of letters, numbers, underscores,
178+
dots, or hyphens, but the first character cannot be a digit.
179+
If the `RelaxedEnvironmentVariableValidation` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled,
180+
all [printable ASCII characters](https://www.ascii-code.com/characters/printable-characters) except "=" may be used for environment variable names.
181+
-->
182+
环境变量名由字母、数字、下划线、点或连字符组成,但第一个字符不能是数字。
183+
如果启用了 `RelaxedEnvironmentVariableValidation` 特性门控,
184+
则所有可打印的 ASCII 字符("=" 除外)都可以用于环境变量名。
185+
176186
```yaml
177187
apiVersion: v1
178188
kind: Pod

content/zh-cn/docs/tasks/run-application/horizontal-pod-autoscale.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,19 +497,19 @@ pod usage is still within acceptable limits.
497497
-->
498498
### 容器资源指标 {#container-resource-metrics}
499499
500-
{{< feature-state for_k8s_version="v1.27" state="beta" >}}
500+
{{< feature-state feature_gate_name="HPAContainerMetrics" >}}
501501
502502
<!--
503503
The HorizontalPodAutoscaler API also supports a container metric source where the HPA can track the
504504
resource usage of individual containers across a set of Pods, in order to scale the target resource.
505505
This lets you configure scaling thresholds for the containers that matter most in a particular Pod.
506-
For example, if you have a web application and a logging sidecar, you can scale based on the resource
506+
For example, if you have a web application and a sidecar container that provides logging, you can scale based on the resource
507507
use of the web application, ignoring the sidecar container and its resource use.
508508
-->
509509
HorizontalPodAutoscaler API 也支持容器指标源,这时 HPA 可以跟踪记录一组 Pod
510510
中各个容器的资源用量,进而触发扩缩目标对象的操作。
511511
容器资源指标的支持使得你可以为特定 Pod 中最重要的容器配置规模扩缩阈值。
512-
例如,如果你有一个 Web 应用和一个执行日志操作的边车容器,你可以基于 Web
512+
例如,如果你有一个 Web 应用和一个提供记录日志功能的边车容器,你可以基于 Web
513513
应用的资源用量来执行扩缩,忽略边车容器的存在及其资源用量。
514514
515515
<!--

0 commit comments

Comments
 (0)