You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This functionality is available in Kubernetes v1.6 and later.
853
853
-->
854
-
{{< note >}}
855
854
Kubernetes v1.6 和更高版本支持此功能。
856
855
{{< /note >}}
857
856
@@ -990,17 +989,18 @@ Pod 运行时,命令 `ls /etc/config/` 产生下面的输出:
990
989
SPECIAL_LEVEL
991
990
SPECIAL_TYPE
992
991
```
992
+
993
+
{{< caution >}}
993
994
<!--
994
995
If there are some files in the `/etc/config/` directory, they will be deleted.
995
996
-->
996
-
{{< caution >}}
997
997
如果在 `/etc/config/` 目录中有一些文件,这些文件将被删除。
998
998
{{< /caution >}}
999
999
1000
+
{{< note >}}
1000
1001
<!--
1001
1002
Text data is exposed as files using the UTF-8 character encoding. To use some other character encoding, use binaryData.
1002
1003
-->
1003
-
{{< note >}}
1004
1004
文本数据会展现为 UTF-8 字符编码的文件。如果使用其他字符编码,
1005
1005
可以使用 `binaryData`。
1006
1006
{{< /note >}}
@@ -1037,10 +1037,10 @@ When the pod runs, the command `cat /etc/config/keys` produces the output below:
1037
1037
very
1038
1038
```
1039
1039
1040
+
{{< caution >}}
1040
1041
<!--
1041
1042
Like before, all previous files in the `/etc/config/` directory will be deleted.
1042
1043
-->
1043
-
{{< caution >}}
1044
1044
如前,`/etc/config/` 目录中所有先前的文件都将被删除。
1045
1045
{{< /caution >}}
1046
1046
@@ -1084,20 +1084,18 @@ existence after a pod has started.
1084
1084
<!--
1085
1085
Kubelet checks whether the mounted ConfigMap is fresh on every periodic sync. However, it uses its local TTL-based cache for getting the current value of the
1086
1086
ConfigMap. As a result, the total delay from the moment when the ConfigMap is updated to the moment when new keys are projected to the pod can be as long as
1087
-
kubelet sync period (1 minute by default) + TTL of ConfigMaps cache (1 minute by default) in kubelet. You can trigger an immediate refresh by updating one of
1088
-
the pod's annotations.
1087
+
kubelet sync period (1 minute by default) + TTL of ConfigMaps cache (1 minute by default) in kubelet.
ConfigMaps should reference properties files, not replace them. Think of the ConfigMap as representing something similar to the Linux `/etc` directory and its contents. For example, if you create a [Kubernetes Volume](/docs/concepts/storage/volumes/) from a ConfigMap, each data item in the ConfigMap is represented by an individual file in the volume.
1122
1121
-->
1123
-
{{< note >}}
1124
1122
ConfigMap 应该引用属性文件,而不是替换它们。可以将 ConfigMap 理解为类似于 Linux
0 commit comments