[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 >}} {{< 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. If you must use an untrusted kubeconfig file, inspect it carefully first, much as you would a shell script.
{{< /warning>}} {{< /warning>}}
--> -->
@ -396,7 +397,7 @@ For example:
### Linux ### Linux
```shell ```shell
export KUBECONFIG_SAVED=$KUBECONFIG export KUBECONFIG_SAVED="$KUBECONFIG"
``` ```
### Windows PowerShell ### Windows PowerShell
@ -422,7 +423,7 @@ Temporarily append two paths to your `KUBECONFIG` environment variable. For exam
### Linux ### Linux
```shell ```shell
export KUBECONFIG=$KUBECONFIG:config-demo:config-demo-2 export KUBECONFIG="${KUBECONFIG}:config-demo:config-demo-2"
``` ```
### Windows PowerShell ### Windows PowerShell
@ -516,7 +517,7 @@ For example:
### Linux ### Linux
```shell ```shell
export KUBECONFIG=$KUBECONFIG:$HOME/.kube/config export KUBECONFIG="${KUBECONFIG}:$HOME/.kube/config"
``` ```
### Windows Powershell ### Windows Powershell
@ -547,7 +548,7 @@ Return your `KUBECONFIG` environment variable to its original value. For example
### Linux ### Linux
```shell ```shell
export KUBECONFIG=$KUBECONFIG_SAVED export KUBECONFIG="$KUBECONFIG_SAVED"
``` ```
### Windows PowerShell ### Windows PowerShell

View File

@ -20,7 +20,6 @@ card:
Many applications rely on configuration which is used during either application initialization or runtime. 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. 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 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. 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.
--> -->
很多应用在其初始化或运行期间要依赖一些配置信息。大多数时候, 很多应用在其初始化或运行期间要依赖一些配置信息。大多数时候,

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. 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 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: Pod:
--> -->
## 为容器定义相互依赖的环境变量 {#define-an-environment-dependent-variable-for-a-container} ## 为容器定义相互依赖的环境变量 {#define-an-environment-dependent-variable-for-a-container}

View File

@ -717,7 +717,7 @@ scaling in that direction.
### Stabilization Window ### Stabilization Window
The stabilization window is used to restrict the [flapping](#flapping) of 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 uses this window to infer a previous desired state and avoid unwanted changes to workload
scale. scale.