-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beyla is unable to resolve dns of internal kubernetes service #893
Comments
Hi @kirankumar-grootan, it looks like the DNS that beyla is connecting too is an external DNS, e.g. 8.8.8.8 looks like Google's DNS and it makes sense that monitoring-alloy won't be resolved. From k8s standpoint, Beyla runs with the setting of hostNetwork:true, in which case the DNS will need something like this:
|
thanks @grcevski for looking into this. but chart doesnt adding dnsPolicy. I need to patch it manually. |
would be great if this is handled in helm https://github.com/grafana/beyla/blob/main/charts/beyla/templates/daemon-set.yaml#L39 {{- if or (eq .Values.preset "network") .Values.config.data.network }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }} happy to raise PR 🙂 |
Yes please, it would be awesome if you can make a PR for this! Thanks @kirankumar-grootan! |
Hi @grcevski I don't have access to push the code to a new branch and which target branch should I branch out from? |
Hi @kirankumar-grootan , thank you for your willing to help. Te way we all PR to Beyla is:
|
#898 merged. Thanks for accepting the PR. |
I deployed Beyla using the below values.yaml file. in Beyla logs it shows 2024/05/30 14:25:34 failed to upload metrics: Post "http://monitoring-alloy:4318/v1/metrics": dial tcp: lookup monitoring-alloy on 8.8.8.8:53: no such host
but the DNS resolution for k8s svc endpoints is just fine. other services have no issue in resolving only Beyla is not able to
The text was updated successfully, but these errors were encountered: