-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[kube-state-metrics] Fix telemetryPort and Probes for KubeRBACProxy #6302
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: aldi.j <[email protected]>
Signed-off-by: aldi.j <[email protected]>
Signed-off-by: aldi.j <[email protected]>
|
When i try release 6.4.1 with kube-rbac-proxy enabled i got the following errors @Alja9 Can you share your helm values? |
|
Hi @HaveFun83 But I also encountered like that so the problems on the probes, and I ignored the probes. Okay, I'll try to fix the probes too. And after I tried again with I'll try to fix that too. |
|
Thanks a lot for looking into this. I did some basic testing with this option but need more time. |
Signed-off-by: aldi.j <[email protected]>
Signed-off-by: aldi.j <[email protected]>
|
Yes, I'm looking forward to that feature, while I'm using I've added the newest commit, you can try it again and let me know what you think. And regarding probes in |
abdc267 to
6043496
Compare
What this PR does / why we need it
telemetryPortfor KubeRBACProxy when it is enabled.Instead of using hardcode 9091 :
helm-charts/charts/kube-state-metrics/templates/deployment.yaml
Line 64 in 1a04bc9
KubeRBACProxyisenabled.Which issue this PR fixes
hostNetwork: true, it may experience a port conflict if port 9091 is already in use.KubeRBACProxybecause it uses the port name while the container port is removed ifKubeRBACProxyisenabled:helm-charts/charts/kube-state-metrics/templates/deployment.yaml
Lines 162 to 170 in df60c02
And use host
127.0.0.1only for thehostNetwork: truecondition, example like this is used in probes:helm-charts/charts/kube-state-metrics/templates/deployment.yaml
Lines 175 to 177 in df60c02
(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])