[zh-cn] sync configmap open-a-pr configure-pod-configmap
Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
parent
695642d0ba
commit
b495121640
|
@ -320,7 +320,7 @@ ConfigMap,你只需要设置一个 `spec.volumes` 块。
|
||||||
When a ConfigMap currently consumed in a volume is updated, projected keys are eventually updated as well.
|
When a ConfigMap currently consumed in a volume is updated, projected keys are eventually updated as well.
|
||||||
The kubelet checks whether the mounted ConfigMap is fresh on every periodic sync.
|
The kubelet checks whether the mounted ConfigMap is fresh on every periodic sync.
|
||||||
However, the kubelet uses its local cache for getting the current value of the ConfigMap.
|
However, the kubelet uses its local cache for getting the current value of the ConfigMap.
|
||||||
The type of the cache is configurable using the `ConfigMapAndSecretChangeDetectionStrategy` field in
|
The type of the cache is configurable using the `configMapAndSecretChangeDetectionStrategy` field in
|
||||||
the [KubeletConfiguration struct](/docs/reference/config-api/kubelet-config.v1beta1/).
|
the [KubeletConfiguration struct](/docs/reference/config-api/kubelet-config.v1beta1/).
|
||||||
-->
|
-->
|
||||||
#### 被挂载的 ConfigMap 内容会被自动更新
|
#### 被挂载的 ConfigMap 内容会被自动更新
|
||||||
|
@ -330,7 +330,7 @@ kubelet 组件会在每次周期性同步时检查所挂载的 ConfigMap 是否
|
||||||
不过,kubelet 使用的是其本地的高速缓存来获得 ConfigMap 的当前值。
|
不过,kubelet 使用的是其本地的高速缓存来获得 ConfigMap 的当前值。
|
||||||
高速缓存的类型可以通过
|
高速缓存的类型可以通过
|
||||||
[KubeletConfiguration 结构](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/).
|
[KubeletConfiguration 结构](/zh-cn/docs/reference/config-api/kubelet-config.v1beta1/).
|
||||||
的 `ConfigMapAndSecretChangeDetectionStrategy` 字段来配置。
|
的 `configMapAndSecretChangeDetectionStrategy` 字段来配置。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
A ConfigMap can be either propagated by watch (default), ttl-based, or by redirecting
|
A ConfigMap can be either propagated by watch (default), ttl-based, or by redirecting
|
||||||
|
|
|
@ -276,7 +276,7 @@ Figure 2. Working from a local fork to make your changes.
|
||||||
1. 打开终端窗口,克隆你所派生的副本,并更新 [Docsy Hugo 主题](https://github.com/google/docsy#readme):
|
1. 打开终端窗口,克隆你所派生的副本,并更新 [Docsy Hugo 主题](https://github.com/google/docsy#readme):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
git clone git@github.com/<github_username>/website
|
git clone git@github.com:<github_username>/website
|
||||||
cd website
|
cd website
|
||||||
git submodule update --init --recursive --depth 1
|
git submodule update --init --recursive --depth 1
|
||||||
```
|
```
|
||||||
|
|
|
@ -133,7 +133,7 @@ symlinks, devices, pipes, and more).
|
||||||
|
|
||||||
{{< note >}}
|
{{< note >}}
|
||||||
<!--
|
<!--
|
||||||
Each filename being used for ConfigMap creation must consist of only acceptable characters, which are: letters (`A` to `Z` and `a` to z`), digits (`0` to `9`), '-', '_', or '.'.
|
Each filename being used for ConfigMap creation must consist of only acceptable characters, which are: letters (`A` to `Z` and `a` to `z`), digits (`0` to `9`), '-', '_', or '.'.
|
||||||
If you use `kubectl create configmap` with a directory where any of the file names contains an unacceptable character, the `kubectl` command may fail.
|
If you use `kubectl create configmap` with a directory where any of the file names contains an unacceptable character, the `kubectl` command may fail.
|
||||||
-->
|
-->
|
||||||
用于创建 ConfigMap 的每个文件名必须由可接受的字符组成,即:字母(`A` 到 `Z` 和
|
用于创建 ConfigMap 的每个文件名必须由可接受的字符组成,即:字母(`A` 到 `Z` 和
|
||||||
|
|
Loading…
Reference in New Issue