gpt4 book ai didi

kubernetes - 什么是 configmap 缓存?

转载 作者:行者123 更新时间:2023-12-04 14:12:46 27 4
gpt4 key购买 nike

有谁知道什么是 configmap 缓存

尝试在此处调试 failed to sync configmap cache 错误。

最佳答案

来自文档 here

The kubelet uses its local cache for getting the current value of theConfigMap from Kubernetes API Server. The type of the cache is configurable using theConfigMapAndSecretChangeDetectionStrategy field in theKubeletConfiguration struct. A ConfigMap can be either propagated bywatch (default), ttl-based, or simply redirecting all requestsdirectly to the API server. As a result, the total delay from themoment when the ConfigMap is updated to the moment when new keys areprojected to the Pod can be as long as the kubelet sync period + cachepropagation delay, where the cache propagation delay depends on thechosen cache type (it equals to watch propagation delay, ttl of cache,or zero correspondingly)

无法同步 configmap 缓存 可能是因为 kubelet 无法连接到 Kubernetes API Server 以获取更新的 configMap 数据。我会使用 journalctl -u kubelet

查看 Kubelet 日志

关于kubernetes - 什么是 configmap 缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63058031/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com