Skip to content

Conversation

younsl
Copy link
Contributor

@younsl younsl commented Aug 13, 2025

Background

Add traffic distribution configuration to optimize Inter-AZ data transfer costs by enabling zone-aware traffic routing. This change introduces a new trafficDistribution field that allows configuring traffic locality preferences, zone affinity rules, and cross-AZ traffic minimization strategies. The implementation reduces cloud egress charges by prioritizing same-zone service-to-service communication while maintaining high availability through intelligent failover to other availability zones when local resources are unavailable.

Changes

  • Add spec.trafficDistribution field for service

Reference

younsl added 2 commits August 13, 2025 09:16
Add traffic distribution configuration to optimize Inter-AZ data
transfer costs by enabling zone-aware traffic routing. This change
introduces a new trafficDistribution field that allows configuring
traffic locality preferences, zone affinity rules, and cross-AZ
traffic minimization strategies. The implementation reduces cloud
egress charges by prioritizing same-zone service-to-service
communication while maintaining high availability through intelligent
failover to other availability zones when local resources are
unavailable.

Reference:
https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution

Signed-off-by: younsl <[email protected]>
@younsl younsl requested a review from funkypenguin as a code owner August 13, 2025 00:23
@younsl
Copy link
Contributor Author

younsl commented Aug 13, 2025

@cfis PTAL

- Replace PreferClose with PreferSameZone and PreferSameNode
- Add reference to official Kubernetes documentation

Signed-off-by: younsl <[email protected]>
@cfis
Copy link
Collaborator

cfis commented Sep 3, 2025

Sorry I missed this before - see one minor comment

@younsl
Copy link
Contributor Author

younsl commented Sep 3, 2025

@cfis Thank you for your review. Fixed for comments. PTAL.

@cfis
Copy link
Collaborator

cfis commented Sep 4, 2025

Thanks!

@cfis cfis merged commit 140add2 into docker-mailserver:master Sep 4, 2025
5 checks passed
@younsl younsl deleted the feat/support-service-trafficdistribution-field branch September 4, 2025 07:47
@younsl
Copy link
Contributor Author

younsl commented Sep 12, 2025

@cfis Good catch for typos. Thank you for your maintaining!

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.

2 participants