Restore metrics-server kubelet preferred address types to upstream defaults#18039
Conversation
|
|
Welcome @nickdallavalentina! |
|
Hi @nickdallavalentina. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This change updates the metrics-server addon configuration to use the upstream/default kubelet preferred address types instead of Hostname.
Before:
After:
We observed intermittent metrics-server scrape failures like:
I think using
Hostnameonly is more fragile in environments where hostname resolution or the DNS/network path is intermittently slower than direct node IP access. Restoring the upstream/default order allows metrics-server to prefer InternalIP first, which is generally the most direct and reliable path for kubelet scraping. This also aligns our addon behavior with the upstream metrics-server manifests.I'm not sure why the default behavior was changed. As you likely have more context around the reason for this modification, I'll leave the decision on whether to keep or change to youExpected impact
This change should reduce intermittent kubelet scrape failures from metrics-server
Reference
metrics-server README / requirements: https://github.com/kubernetes-sigs/metrics-server?tab=readme-ov-file#requirements