Closed SarthakSahu closed 1 year ago
2021-05-25 09:33:49 +0000 [error]: #0 Exception encountered parsing pod watch event. The connection might have been closed. Retried 10 times yet still failing. Restarting.failed to connect: getaddrinfo: Name or service not known
Your answer is in the stack trace in it looks like possibly a networking or DNS error.
2021-05-25 09:33:49 +0000 [warn]: #0 thread exited by unexpected error plugin=Fluent::Plugin::KubernetesMetadataFilter title=:pod_watch_thread error_class=Fluent::UnrecoverableError error="Exception encountered parsing pod watch event. The connection might have been closed. Retried 10 times yet still failing. Restarting."
It tried to connect 10 times and was unable
But how the stats has been received successfully during the failover period ? Is this the similar issue as #249 ? Is the fix available in v2.5.3 with #267 ?
But how the stats has been received successfully during the failover period ?
stats are dumped based on log messages being processed by the filter and if a certain amount of time has elapsed. It is the string representation of a hash. Additionally, if the filter is processing messages for which it already has an entry in its cache, it will not make an API call. The issue you references is related to the plugin watching the API server which happens in a thread outside the message processing loop. This means it is entirely possible logs have been sent through the filter but the API watch is failing.
Is this the similar issue as #249 ? Is the fix available in v2.5.3 with #267 ?
Is this a bug ? Is this the similar to #249 .
Closing due to age
'fluent-plugin-kubernetes_metadata_filter' version '2.4.2'
Fluentd pods are running as daemon set(20 instances) in our K8S cluster. Few Flunetd pods restarted with below error caused by kubernetes_metadata_filter. Please let me know why this pod has restarted and how can we overcome this issue.
As per this comments in the code it could be caused by Kubernetes API being temporarily down. But mean time pod has received the stats successfully.