-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[prometheus-kube-stack] kube-proxy metrics status with connection refused. #977
Comments
I have gone through helm/charts#16476 & it doesn't help. Let me know if anything to be checked in particular. |
Maybe you can check your docker http_proxy https_proxy setting [ check docker.service and .docker/config.json ]
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
I checked out the proposed solution, applied the changes and it's working on EKS. I've changed the following: kubectl edit cm kube-proxy-config -n kube-system
## Change from
metricsBindAddress: 127.0.0.1:10249 ### <--- Too secure
## Change to
metricsBindAddress: 0.0.0.0:10249 Regards, |
Thanks @alternaivan ! That worked for me! |
Confirming this workaround works fine. If anyone is concerned about the port being exposed on 0.0.0.0, kube-proxy automatically changes the protocol to HTTPS and adds in-cluster RBAC authentication to this endpoint. prometheus-operator is configured out-of-the-box to authenticate and should pick up the metrics right away. |
@juliohm1978 Where do you see I read this issue and was excited to read this, but my results show that it's still serving the metrics endpoint over http after the config change of setting the TestingUsing
If we curl using tls:
OpenSSL also doesn't think this is an encrypted stream:
InvestigatingI also had a look at the After reaching my own consensus that I didn't see a way this could support TLS, I decided to see if there were any issues (ie was this a bug that I couldn't make it work?), well it looks like there is a closed issue for this: kubernetes/kubernetes#106870, but it seems to be closed without resolution. In conclusion, I don't see a way to make this work with TLS but the kubernetes community doesn't seem too concerned with this so I guess I'm not either. I've not yet investigated all of the metrics provided here but the other note is that there's no command or control from this endpoint, it's just metrics. I guess the alternatives are to run a daemonset on each node and use the Edit: Also found this: kubernetes/kubernetes#74300, so I guess it was decided to keep it defaulted at |
I did set an EKS environment monitoring with prometheus-kube-stack. Notices prometheus-kube-proxy metrics are down with
10249: connect: connection refused
displayed in Prometheus>Status>Targets displayed always.Version of Helm and Kubernetes:
Helm Version:
Kubernetes Version:
Which version of the chart:
What happened:
Always
10249: connect: connection refused
displayed in Prometheus>Status>Targets and not able to monitor metrics of kube-proxyChanged values of values.yaml (only put values which differ from the defaults):
Helm values set after installation/upgrade related to kubeProxy setting
The text was updated successfully, but these errors were encountered: