The issue of DNS resolution for the names of Thanos-related services returning "No answer" #8528
Replies: 1 comment
-
|
My CoreDNS does not support IPv6. I found that for type A, normal DNS resolution is possible. I found that in the following form, normal DNS resolution is not possible. kubectl get statefulsets,deployments,pods,service -n monitor Querying the Pod of the thanos query component, the following error logs were found: kubectl logs -f pod/my-thanos-query-0 -n monitor What should I do to resolve this error log here? Additionally, I'm not sure if the configuration in the above section regarding --endpoint.sd-config-file=/etc/thanos/endpoints.json is in the correct format. I haven't found any specific configuration method on the official website either. Please correct me if I'm wrong. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, everyone!
Is it because these two domain names, my-prometheus-thanos-sidecar-headless.monitor.svc.cluster.local and my-thanos-store-headless.monitor.svc.cluster.local, cannot be properly dns resolved that the registration of the store and sidecar is not possible?
How should I troubleshoot this issue?
My pod/coredns-799cd8f49d-7xpvd is running normally.
I used nslookup for testing, and it often returned "No answer", but sometimes it would successfully resolve and return the IP address with very few attempts.
my-prometheus-thanos-sidecar-headless.monitor.svc.cluster.local" is a headless service.
I tested it using wget and it should be able to parse out the IP address.
I conducted a test using other pods within the same monitor namespace, and found that DNS resolution could respond normally very quickly. As follows:
My pod/my-thanos-query-0 is connected to these two Pods through the two headless services, my-prometheus-thanos-sidecar-headless.monitor.svc.cluster.local and my-thanos-store-headless.monitor.svc.cluster.local. Please refer to the following configuration of the thanos query for details.
#Detailed configuration details
- --endpoint.sd-config-file=/etc/thanos/endpoints.json
Beta Was this translation helpful? Give feedback.
All reactions