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

exporter: bind to all interfaces if IPv6 is enabled #12886

Merged
merged 1 commit into from
Sep 12, 2023
Merged

exporter: bind to all interfaces if IPv6 is enabled #12886

merged 1 commit into from
Sep 12, 2023

Conversation

matthewpi
Copy link
Contributor

Description of your changes:

Adds a new argument to the ceph-exporter container that causes it to bind to both IPv4 and IPv6 interfaces. Without the flag the exporter will only bind to IPv4 which causes the exporter to not be scraped correctly when the cluster prefers IPv6 over IPv4 (Kubernetes is ran with --cluster-cidr=<IPv6>,<IPv4>, instead of IPv4 being first).

Which issue is resolved by this Pull Request:
Resolves #12885

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Copy link
Member

@travisn travisn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @avanthakkar PTAL

@matthewpi matthewpi changed the title exporter: add --addrs :: argument exporter: bind to all interfaces if IPv6 is enabled Sep 12, 2023
Previously ceph-exporter would only bind to IPv4 interfaces. Now if the
CephCluster is configured with `dualStack: true` and/or `ipFamily: IPv6`
an additional flag (`--addrs ::`) will be added to the ceph-exporter
container to make it listen both IPv6 and IPv4 interfaces.

Signed-off-by: Matthew Penner <me@matthewp.io>
@travisn travisn merged commit e8464bb into rook:master Sep 12, 2023
50 checks passed
@matthewpi matthewpi deleted the fix-ceph-exporter-ipv6 branch September 12, 2023 20:33
travisn added a commit that referenced this pull request Sep 12, 2023
exporter: bind to all interfaces if IPv6 is enabled (backport #12886)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ceph-exporter doesn't listen on IPv6 interfaces
3 participants