[zh-cn] sync configmap open-a-pr configure-pod-configmap

Signed-off-by: xin.li <xin.li@daocloud.io>
pull/41086/head
xin.li 2023-05-11 21:34:57 +08:00
parent 695642d0ba
commit b495121640
3 changed files with 4 additions and 4 deletions

View File

@ -320,7 +320,7 @@ ConfigMap你只需要设置一个 `spec.volumes` 块。
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.
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/).
-->
#### 被挂载的 ConfigMap 内容会被自动更新
@ -330,7 +330,7 @@ kubelet 组件会在每次周期性同步时检查所挂载的 ConfigMap 是否
不过kubelet 使用的是其本地的高速缓存来获得 ConfigMap 的当前值。
高速缓存的类型可以通过
[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

View File

@ -276,7 +276,7 @@ Figure 2. Working from a local fork to make your changes.
1. 打开终端窗口,克隆你所派生的副本,并更新 [Docsy Hugo 主题](https://github.com/google/docsy#readme)
```shell
git clone git@github.com/<github_username>/website
git clone git@github.com:<github_username>/website
cd website
git submodule update --init --recursive --depth 1
```

View File

@ -133,7 +133,7 @@ symlinks, devices, pipes, and more).
{{< 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.
-->
用于创建 ConfigMap 的每个文件名必须由可接受的字符组成,即:字母(`A` 到 `Z`