From 71a03ba85dfb90ef28304f1f9bee54af8cec15fa Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Sat, 11 Jun 2022 15:32:23 +0800 Subject: [PATCH] [zh] resync tasks files (task-2) --- .../configure-access-multiple-clusters.md | 11 ++++++----- .../configure-pod-configmap.md | 5 ++--- .../define-interdependent-environment-variables.md | 2 +- .../tasks/run-application/horizontal-pod-autoscale.md | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/content/zh-cn/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md b/content/zh-cn/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md index c5004d8f2d..189cedaded 100644 --- a/content/zh-cn/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md +++ b/content/zh-cn/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md @@ -39,7 +39,8 @@ It does not mean that there is a file named `kubeconfig`. @@ -396,7 +397,7 @@ For example: ### Linux ```shell -export KUBECONFIG_SAVED=$KUBECONFIG +export KUBECONFIG_SAVED="$KUBECONFIG" ``` ### Windows PowerShell @@ -422,7 +423,7 @@ Temporarily append two paths to your `KUBECONFIG` environment variable. For exam ### Linux ```shell -export KUBECONFIG=$KUBECONFIG:config-demo:config-demo-2 +export KUBECONFIG="${KUBECONFIG}:config-demo:config-demo-2" ``` ### Windows PowerShell @@ -516,7 +517,7 @@ For example: ### Linux ```shell -export KUBECONFIG=$KUBECONFIG:$HOME/.kube/config +export KUBECONFIG="${KUBECONFIG}:$HOME/.kube/config" ``` ### Windows Powershell @@ -547,7 +548,7 @@ Return your `KUBECONFIG` environment variable to its original value. For example ### Linux ```shell -export KUBECONFIG=$KUBECONFIG_SAVED +export KUBECONFIG="$KUBECONFIG_SAVED" ``` ### Windows PowerShell diff --git a/content/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap.md b/content/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap.md index 398e0e8c71..1b8c0081c0 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap.md @@ -20,7 +20,6 @@ card: Many applications rely on configuration which is used during either application initialization or runtime. Most of the times there is a requirement to adjust values assigned to configuration parameters. ConfigMaps is the kubernetes way to inject application pods with configuration data. - ConfigMaps allow you to decouple configuration artifacts from image content to keep containerized applications portable. This page provides a series of usage examples demonstrating how to create ConfigMaps and configure Pods using data stored in ConfigMaps. --> 很多应用在其初始化或运行期间要依赖一些配置信息。大多数时候, @@ -773,7 +772,7 @@ configmap/special-config-2-c92b5mmcf2 created ### 使用单个 ConfigMap 中的数据定义容器环境变量 {#define-a-container-environment-variable-with-data-from-a-single-configmap} 1. 在 ConfigMap 中将环境变量定义为键值对: @@ -782,7 +781,7 @@ configmap/special-config-2-c92b5mmcf2 created ``` 2. 将 ConfigMap 中定义的 `special.how` 赋值给 Pod 规约中的 `SPECIAL_LEVEL_KEY` 环境变量。 diff --git a/content/zh-cn/docs/tasks/inject-data-application/define-interdependent-environment-variables.md b/content/zh-cn/docs/tasks/inject-data-application/define-interdependent-environment-variables.md index 12c5032b49..cc186e8e18 100644 --- a/content/zh-cn/docs/tasks/inject-data-application/define-interdependent-environment-variables.md +++ b/content/zh-cn/docs/tasks/inject-data-application/define-interdependent-environment-variables.md @@ -29,7 +29,7 @@ in a Kubernetes Pod. When you create a Pod, you can set dependent environment variables for the containers that run in the Pod. To set dependent environment variables, you can use $(VAR_NAME) in the `value` of `env` in the configuration file. In this exercise, you create a Pod that runs one container. The configuration -file for the Pod defines an dependent environment variable with common usage defined. Here is the configuration manifest for the +file for the Pod defines a dependent environment variable with common usage defined. Here is the configuration manifest for the Pod: --> ## 为容器定义相互依赖的环境变量 {#define-an-environment-dependent-variable-for-a-container} diff --git a/content/zh-cn/docs/tasks/run-application/horizontal-pod-autoscale.md b/content/zh-cn/docs/tasks/run-application/horizontal-pod-autoscale.md index 4ba6b9857a..94b3c92077 100644 --- a/content/zh-cn/docs/tasks/run-application/horizontal-pod-autoscale.md +++ b/content/zh-cn/docs/tasks/run-application/horizontal-pod-autoscale.md @@ -717,7 +717,7 @@ scaling in that direction. ### Stabilization Window The stabilization window is used to restrict the [flapping](#flapping) of -replicas count when the metrics used for scaling keep fluctuating. The autoscaling algorithm +replica count when the metrics used for scaling keep fluctuating. The autoscaling algorithm uses this window to infer a previous desired state and avoid unwanted changes to workload scale.