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

expose metrics-bind-address configuration for kube-proxy #6472

Closed
vivekgarg20 opened this issue Feb 15, 2019 · 5 comments
Closed

expose metrics-bind-address configuration for kube-proxy #6472

vivekgarg20 opened this issue Feb 15, 2019 · 5 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@vivekgarg20
Copy link
Contributor

1. Describe IN DETAIL the feature/behavior/change you would like to see.
We are trying to scrape kube-proxy metrics but unable to do same with KOPS built cluster.
We figured out it is because of default metrics bind address is 127.0.0.1.
As per K8S documentation it is possible to change default bind address to 0.0.0.0.
https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/

It seems KOPS does not expose this configuration.
2. Feel free to provide a design supporting your feature request.
It is straightforward as we need to expose metrics-bind-address configuration. I can submit a PR if required.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 16, 2019
@vivekgarg20
Copy link
Contributor Author

Thanks @gambol99

@demisx
Copy link

demisx commented Nov 6, 2019

Can you guys please tell me how I can edit or create a new kops cluster with metrics-bind-address=0.0.0.0? Where do I set this? I tried passing the --metrics-bind-address=0.0.0.0 flag to kops create cluster, but it does not understand it. Thank you!

@ivnilv
Copy link

ivnilv commented Nov 8, 2019

Can you guys please tell me how I can edit or create a new kops cluster with metrics-bind-address=0.0.0.0? Where do I set this? I tried passing the --metrics-bind-address=0.0.0.0 flag to kops create cluster, but it does not understand it. Thank you!

For those who still need it, I managed to change the metrics bind address from 127.0.0.1 to 0.0.0.0 by putting the following in my cluster spec:

...
  kubeProxy:
    metricsBindAddress: 0.0.0.0
...

Then, did a kops update cluster followed by a rolling-update and and finally Prometheus was able to scrape the kube-proxy metrics 🎉

@demisx
Copy link

demisx commented Nov 9, 2019

@ivnilv Thank you! This worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

5 participants