forked from hashicorp/consul-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync nodeport services from each kubernetes node
The original plan was to only sync NodePort service instances for the nodes they were running on. Currently, they are being synced with the pod's ip address instead, which is not guaranteed to be routable. For users running in this type of environment, this is causing these services to be reaped by the anti-entropy mechanism since their health checks fail due to the unroutability. Additionally, this provides the incorrect ip address for routing to NodePort services, which makes the sync ineffective. Given that there is not an easy way to get the node info from a service, the easiest solution to this is to sync all of the kubernetes nodes for the NodePort service. This has the benefit of distributing traffic as Kuberentes expects it for this type of service.
- Loading branch information
Showing
2 changed files
with
106 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters