Are Kubernete's ConfigMaps Writable?

后端 未结 3 1204
刺人心
刺人心 2021-01-02 08:49

Is it possible to directly modify the file mounted by configMap? We have an application that reads a configuration file that was configMap type and

3条回答
  •  执笔经年
    2021-01-02 09:34

    From Kubernetes doc, it can be updated see link

    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.

提交回复
热议问题