Skip to content

Commit 5a2283d

Browse files
authored
Merge pull request #34232 from tengqm/zh-34221-task-2
[zh] resync tasks files (task-2)
2 parents 97408b7 + 71a03ba commit 5a2283d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

content/zh-cn/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ It does not mean that there is a file named `kubeconfig`.
3939

4040
<!--
4141
{{< warning >}}
42-
Only use kubeconfig files from trusted sources. Using a specially-crafted kubeconfig file could result in malicious code execution or file exposure.
42+
Only use kubeconfig files from trusted sources. Using a specially-crafted kubeconfig
43+
file could result in malicious code execution or file exposure.
4344
If you must use an untrusted kubeconfig file, inspect it carefully first, much as you would a shell script.
4445
{{< /warning>}}
4546
-->
@@ -396,7 +397,7 @@ For example:
396397
### Linux
397398

398399
```shell
399-
export KUBECONFIG_SAVED=$KUBECONFIG
400+
export KUBECONFIG_SAVED="$KUBECONFIG"
400401
```
401402

402403
### Windows PowerShell
@@ -422,7 +423,7 @@ Temporarily append two paths to your `KUBECONFIG` environment variable. For exam
422423
### Linux
423424

424425
```shell
425-
export KUBECONFIG=$KUBECONFIG:config-demo:config-demo-2
426+
export KUBECONFIG="${KUBECONFIG}:config-demo:config-demo-2"
426427
```
427428

428429
### Windows PowerShell
@@ -516,7 +517,7 @@ For example:
516517
### Linux
517518

518519
```shell
519-
export KUBECONFIG=$KUBECONFIG:$HOME/.kube/config
520+
export KUBECONFIG="${KUBECONFIG}:$HOME/.kube/config"
520521
```
521522

522523
### Windows Powershell
@@ -547,7 +548,7 @@ Return your `KUBECONFIG` environment variable to its original value. For example
547548
### Linux
548549

549550
```shell
550-
export KUBECONFIG=$KUBECONFIG_SAVED
551+
export KUBECONFIG="$KUBECONFIG_SAVED"
551552
```
552553

553554
### Windows PowerShell

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ card:
2020
Many applications rely on configuration which is used during either application initialization or runtime.
2121
Most of the times there is a requirement to adjust values assigned to configuration parameters.
2222
ConfigMaps is the kubernetes way to inject application pods with configuration data.
23-
2423
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.
2524
-->
2625
很多应用在其初始化或运行期间要依赖一些配置信息。大多数时候,
@@ -773,7 +772,7 @@ configmap/special-config-2-c92b5mmcf2 created
773772
### 使用单个 ConfigMap 中的数据定义容器环境变量 {#define-a-container-environment-variable-with-data-from-a-single-configmap}
774773

775774
<!--
776-
1. Define an environment variable as a key-value pair in a ConfigMap:
775+
1. Define an environment variable as a key-value pair in a ConfigMap:
777776
-->
778777
1. 在 ConfigMap 中将环境变量定义为键值对:
779778

@@ -782,7 +781,7 @@ configmap/special-config-2-c92b5mmcf2 created
782781
```
783782

784783
<!--
785-
2. Assign the `special.how` value defined in the ConfigMap to the `SPECIAL_LEVEL_KEY` environment variable in the Pod specification.
784+
2. Assign the `special.how` value defined in the ConfigMap to the `SPECIAL_LEVEL_KEY` environment variable in the Pod specification.
786785
-->
787786
2. 将 ConfigMap 中定义的 `special.how` 赋值给 Pod 规约中的 `SPECIAL_LEVEL_KEY` 环境变量。
788787

content/zh-cn/docs/tasks/inject-data-application/define-interdependent-environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ in a Kubernetes Pod.
2929
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.
3030
3131
In this exercise, you create a Pod that runs one container. The configuration
32-
file for the Pod defines an dependent environment variable with common usage defined. Here is the configuration manifest for the
32+
file for the Pod defines a dependent environment variable with common usage defined. Here is the configuration manifest for the
3333
Pod:
3434
-->
3535
## 为容器定义相互依赖的环境变量 {#define-an-environment-dependent-variable-for-a-container}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ scaling in that direction.
717717
### Stabilization Window
718718

719719
The stabilization window is used to restrict the [flapping](#flapping) of
720-
replicas count when the metrics used for scaling keep fluctuating. The autoscaling algorithm
720+
replica count when the metrics used for scaling keep fluctuating. The autoscaling algorithm
721721
uses this window to infer a previous desired state and avoid unwanted changes to workload
722722
scale.
723723

0 commit comments

Comments
 (0)