[zh] resync tasks files (task-2)

pull/34232/head
Qiming Teng 2022-06-11 15:32:23 +08:00
parent 4b04e8ffdc
commit 71a03ba85d
4 changed files with 10 additions and 10 deletions

View File

@ -39,7 +39,8 @@ It does not mean that there is a file named `kubeconfig`.
<!--
{{< warning >}}
Only use kubeconfig files from trusted sources. Using a specially-crafted kubeconfig file could result in malicious code execution or file exposure.
Only use kubeconfig files from trusted sources. Using a specially-crafted kubeconfig
file could result in malicious code execution or file exposure.
If you must use an untrusted kubeconfig file, inspect it carefully first, much as you would a shell script.
{{< /warning>}}
-->
@ -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

View File

@ -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. Define an environment variable as a key-value pair in a ConfigMap:
1. Define an environment variable as a key-value pair in a ConfigMap:
-->
1. 在 ConfigMap 中将环境变量定义为键值对:
@ -782,7 +781,7 @@ configmap/special-config-2-c92b5mmcf2 created
```
<!--
2. Assign the `special.how` value defined in the ConfigMap to the `SPECIAL_LEVEL_KEY` environment variable in the Pod specification.
2. Assign the `special.how` value defined in the ConfigMap to the `SPECIAL_LEVEL_KEY` environment variable in the Pod specification.
-->
2. 将 ConfigMap 中定义的 `special.how` 赋值给 Pod 规约中的 `SPECIAL_LEVEL_KEY` 环境变量。

View File

@ -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}

View File

@ -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.