Skip to content

fix: create IPv4 Service with ipFamily IPv4 on dual-stack, IPv6-first cluster #6390

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

michaelbeaumont
Copy link
Contributor

What type of PR is this?
fix: create IPv4 Service with ipFamily IPv4 on dual-stack, IPv6-first cluster

What this PR does / why we need it:
The deleted comment isn't accurate. From Kubernetes docs:

The address family of a Service defaults to the address family of the first service cluster IP range (configured via the --service-cluster-ip-range flag to the kube-apiserver).

Which issue(s) this PR fixes:
Fixes #6389

Release Notes: Yes

@michaelbeaumont michaelbeaumont requested a review from a team as a code owner June 23, 2025 20:54
@michaelbeaumont michaelbeaumont force-pushed the fix/ipv4-dual-stack-ipv6-first branch from 7287e47 to bff3ba8 Compare June 23, 2025 20:55
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.70%. Comparing base (970cee1) to head (bff3ba8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6390      +/-   ##
==========================================
- Coverage   70.74%   70.70%   -0.04%     
==========================================
  Files         220      220              
  Lines       37096    37098       +2     
==========================================
- Hits        26243    26231      -12     
- Misses       9315     9325      +10     
- Partials     1538     1542       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arkodg
Copy link
Contributor

arkodg commented Jun 23, 2025

thanks @michaelbeaumont, can you confirm if the fix and the configuration (ipFamily: IPv4) works in a IPv6 first cluster i.e. can the kubelet communicate successfully with the envoy pod, and set Ready=True ?

@michaelbeaumont
Copy link
Contributor Author

Hmm, @arkodg no unfortunately. There's an issue with the health check not being accessible on IPv6 afaict. It seems like

xdsIR.ReadyListener = &ir.ReadyListener{
Address: address,
Port: uint32(bootstrap.EnvoyReadinessPort),
Path: bootstrap.EnvoyReadinessPath,
IPFamily: ipFamily,
}

needs to be tweaked in this case. Maybe it should always listen on all ip families allocated to the Pod, not just the ip family set in the EnvoyProxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting ipFamily: IPv4 on a dual stack, IPv6-first cluster results in an IPv6 Service
2 participants