Skip to content

Commit e0c4b4d

Browse files
zhonghui12edsiper
authored andcommitted
filter_kubernetes: add more detailed description for kube_meta_cache_ttl
Signed-off-by: Zhonghui Hu <[email protected]>
1 parent d3c71f2 commit e0c4b4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/filter_kubernetes/kubernetes.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,12 @@ static struct flb_config_map config_map[] = {
839839
{
840840
FLB_CONFIG_MAP_TIME, "kube_meta_cache_ttl", "0",
841841
0, FLB_TRUE, offsetof(struct flb_kube, kube_meta_cache_ttl),
842-
"configurable TTL for K8s cached metadata"
842+
"configurable TTL for K8s cached metadata. "
843+
"By default, it is set to 0 which means TTL for cache entries is disabled and "
844+
"cache entries are evicted at random when capacity is reached. "
845+
"In order to enable this option, you should set the number to a time interval. "
846+
"For example, set this value to 60 or 60s and cache entries "
847+
"which have been created more than 60s will be evicted"
843848
},
844849
/* EOF */
845850
{0}

0 commit comments

Comments
 (0)