-
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
[kube-state-metrics] Use kube-rbac-proxy ports for probes when kube-rbac-proxy is enabled #5234
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: r0bj <[email protected]>
Signed-off-by: r0bj <[email protected]>
thanks you for implementing this @r0bj. LGTM
you comment link is pointing to the wrong comment ^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @r0bj,
Thank you for your pull requests on this topic.
For the first part of the pull request, I think that you could use extraArgs
and kubeRBACProxy.extraArgs
directly.
If you need specific extra args for the http
and telemetry
containers, I would rather add something like kubeRBACProxy.extraHttpArgs
and kubeRBACProxy.extraTelemetryArgs
.
What do you think?
@dotdc Yes, that also makes sense. We can remove the conditional logic for including --ignore-paths in the kube-rbac-proxy containers and instead rely on .Values.kubeRBACProxy.extraArgs to pass |
Yes I would prefer, as it gives more flexibility. |
@dotdc Yes, I updated the pull request. |
@r0bj You removed flags in 4118f78 without implementing Did you notice it wasn't needed in the end? |
Instead of creating additional values for each kube-rbac-proxy instance (e.g., |
What this PR does / why we need it
When kubeRBACProxy is enabled, probes from the kubelet fail because the kube-state-metrics ports are bound to 127.0.0.1. This PR configures the probes to use the ports protected by kube-rbac-proxy, ensuring that health checks succeed when kube-rbac-proxy is enabled.
For more context, please refer to this comment.
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer
Checklist
[prometheus-couchdb-exporter]
)