-
Hi,
My clusteroutput looks like this:
This domain exists (myendpoint.com is just an example), and I know what is the reason for this failure. Fluentd image is based on AlpineOS, which has its own implementation of DNS client (non glibc), which does not work very well on Kubernetes. (It returns nx domain, because it somehow tries to check a lot of search domains - or sth similar to this - did not really investigate this) There are two workarounds for this issue.
I added this to logging API object for fluentd:
It is applied to fluentd stateful set. However, it is not applied to config-check pods. I checked documentation and I only see that I can add configCheckResources and configCheckAnnotations. But there is nothing about dnsConfig for config check pod. Did I miss something? Or maybe there is a fluentd image not based on Alpine somewhere to use ? FYI, I ran kube-logging 4.2.3 helm chart version of kube-logging and RKE v1.24.10 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ok, I fixed this by patching logging-operator file ./pkg/resources/fluentd/appconfigmap.go and rebuilding it I added this
It looks that it works, but I am not a Go expert at all ;) Maybe it would be nice to add it to master branch and a newest version. |
Beta Was this translation helpful? Give feedback.
-
Glad you could solve it in the end! Feel free to open a PR if you like, the solution is nothing more complex than what you did there. If not, I'm happy to convert this to an issue and fix it in the next upcoming release. |
Beta Was this translation helpful? Give feedback.
Ok, I fixed this by patching logging-operator file ./pkg/resources/fluentd/appconfigmap.go and rebuilding it
I added this
DNSConfig: r.Logging.Spec.FluentdSpec.DNSConfig,
to following func