diff --git a/plugins/filter_kubernetes/kube_conf.c b/plugins/filter_kubernetes/kube_conf.c index b9ca2345813..1592377e504 100644 --- a/plugins/filter_kubernetes/kube_conf.c +++ b/plugins/filter_kubernetes/kube_conf.c @@ -137,7 +137,7 @@ struct flb_kube *flb_kube_conf_create(struct flb_filter_instance *ins, FLB_HASH_TABLE_SIZE); } - if (ctx->kube_meta_cache_ttl > 0) { + if (ctx->kube_meta_namespace_cache_ttl > 0) { ctx->namespace_hash_table = flb_hash_table_create_with_ttl( ctx->kube_meta_namespace_cache_ttl, FLB_HASH_TABLE_EVICT_OLDER, diff --git a/plugins/filter_kubernetes/kubernetes.c b/plugins/filter_kubernetes/kubernetes.c index 85e15abd484..aee78f2df3e 100644 --- a/plugins/filter_kubernetes/kubernetes.c +++ b/plugins/filter_kubernetes/kubernetes.c @@ -1040,11 +1040,11 @@ static struct flb_config_map config_map[] = { "which have been created more than 60s will be evicted" }, { - FLB_CONFIG_MAP_TIME, "kube_meta_namespace_cache_ttl", "900", + FLB_CONFIG_MAP_TIME, "kube_meta_namespace_cache_ttl", "15m", 0, FLB_TRUE, offsetof(struct flb_kube, kube_meta_namespace_cache_ttl), "configurable TTL for K8s cached namespace metadata. " - "By default, it is set to 900 and cached entries will be evicted after " - " 900s (15m). Setting this to 0 will disable the cache TTL and " + "By default, it is set to 15m and cached entries will be evicted after 15m." + "Setting this to 0 will disable the cache TTL and " "will evict entries once the cache reaches capacity." }, /* EOF */