Skip to content
Permalink
Browse files

Provide the default values for sync period and ttl (#15296)

* Provide the default values for sync period and ttl

Fill the default value information of kubelet sync period and ttl of ConfigMaps cache in kubelet.
Value info comes from:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/configmap/configmap_manager.go#L110
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/apis/config/v1beta1/defaults.go#L51

* Update configure-pod-configmap.md
  • Loading branch information...
GuoxiangZu authored and k8s-ci-robot committed Jul 6, 2019
1 parent 5cc0fbe commit e50dba3ac4b214a85e07d367e51876ff92367361
Showing with 1 addition and 1 deletion.
  1. +1 −1 content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md
@@ -593,7 +593,7 @@ basis. The [Secrets](/docs/concepts/configuration/secret/#using-secrets-as-files
### Mounted ConfigMaps are updated automatically
When a ConfigMap already being consumed in a volume is updated, projected keys are eventually updated as well. Kubelet is checking whether the mounted ConfigMap is fresh on every periodic sync. However, it is using its local ttl-based cache for getting the current value of the 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 kubelet sync period + ttl of ConfigMaps cache in kubelet.
When a ConfigMap already being consumed in a volume is updated, projected keys are eventually updated as well. Kubelet is checking whether the mounted ConfigMap is fresh on every periodic sync. However, it is using its local ttl-based cache for getting the current value of the 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 kubelet sync period (1 minute by default) + ttl of ConfigMaps cache (1 minute by default) in kubelet.
{{< note >}}
A container using a ConfigMap as a [subPath](/docs/concepts/storage/volumes/#using-subpath) volume will not receive ConfigMap updates.

0 comments on commit e50dba3

Please sign in to comment.
You can’t perform that action at this time.