metrics: change the port for metrics-exporter#3733
metrics: change the port for metrics-exporter#3733openshift-merge-bot[bot] merged 1 commit intored-hat-storage:mainfrom
Conversation
| return err | ||
| } | ||
|
|
||
| // start the exporter service |
There was a problem hiding this comment.
any specfic reason for changing the position, I dont see any relevant change here
There was a problem hiding this comment.
Creating the Service first ensures the endpoints are ready when pods start.
There was a problem hiding this comment.
yes, just extra protection for race conditions
|
@weirdwiz will this change always prevent such port conflicts ?? Example (in case of host networking): say if two different deployments (both using So, isn't this a wider issue ?? How do other ODF components handle such cases ?? Or is there something I might be missing here ?? |
this PR isn't trying to solve arbitrary port conflicts. it's fixing a specific, reported conflict (DFBUGS-5812) where kubevirt binds 8080/8081 on the host, and in host networking mode the exporter shares the same network namespace so they collide. other ODF components handle this the same way for example, RGW switches from port 80/443 to 50080/50443 when host networking is enabled |
|
ptal @Madhu-1 |
I understand that.
That's what I meant by wider issue in my previous comment. But if this is already what we do across ODF components, and it's something we have already discussed and agreed on, then that answers my question. |
|
/cherry-pick release-4.21 |
|
@weirdwiz: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
in host mode, metrics exporter has a bind contention with kubevirt so we need to change the port to something other than 8080 / 8081 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
ed4044d to
edf625f
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: malayparida2000, weirdwiz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c5e7217
into
red-hat-storage:main
|
/cherry-pick release-4.21 |
metrics: change the port for metrics-exporter
The --host 127.0.0.1 and --exporter-host 127.0.0.1 flags were added in PR red-hat-storage#3733 along with the port change to fix the KubeVirt bind contention in host networking mode. However, these flags are passed unconditionally, causing the exporter to bind only to the pod's loopback interface. The kubelet sends liveness/readiness probes to the pod IP, not localhost, resulting in connection refused and the container entering CrashLoopBackOff on every upgrade. Drop the --host and --exporter-host flags so the exporter defaults to 0.0.0.0. The port change to 18080/18081 (the actual fix for the KubeVirt conflict) is preserved. fixes: DFBUGS-5950 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
in host mode, metrics exporter has a bind contention with kubevirt so we
need to change the port to something other than 8080 / 8081
fixes: DFBUGS-5812