Skip to content
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

No access to External DNS metrics outside the pod #4527

Open
nlamirault opened this issue Jun 5, 2024 · 1 comment
Open

No access to External DNS metrics outside the pod #4527

nlamirault opened this issue Jun 5, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@nlamirault
Copy link

What happened:

Hi, I deploy External-DNS using the official helm charts. It uses the Cloudflare provider. All seems working (DNS record, controller, .... ) except retrieving metrics using the ServiceMonitor. I've got this error:

Get "http://10.0.4.199:7979/metrics": read tcp 10.0.0.129:55492->10.0.4.199:7979: read: connection reset by peer

If I try to retrieve metrics using port-forward on the Service, it works. Port-forward on the pod, it works. But if I try to retrieve metrics from other pods inside the cluster it doesn't work. wget 10.0.4.199:7979/metrics failed.
It is due to the bind address localhost in the pod and not 0.0.0.0 ... but I don't find any argument for that.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version):
  • DNS provider:
  • Others:
@nlamirault nlamirault added the kind/bug Categorizes issue or PR as related to a bug. label Jun 5, 2024
@k0da
Copy link
Contributor

k0da commented Jun 14, 2024

@nlamirault
I run netshoot pod in the same namespace and I'm able to access metrics:

curl http://external-dns-nonprod-external-dns:7979/metrics
# HELP external_dns_controller_last_reconcile_timestamp_seconds Timestamp of last attempted sync with the DNS provider
# TYPE external_dns_controller_last_reconcile_timestamp_seconds gauge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants