This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cds): return local cluster endpoints per port
* getLocalServiceCluster was returning an xds cluster with endpoints based on Kubernetes service endpoints when it should have been building lcoal cluster endpoints based on the port specified in the service spec. i.e. 0.0.0.0:<port> As a result, there were 18 extra, duplicate entries in the envoy local clusters that were being programmed per Kubernetes service endpoints (or Pod replicas) * This fixes the getLocalServiceCluster to return a local cluster with endpoints based on the Kubernetes port rather than the Kubernetes Service endpoints. * It also adds a validation that ensures that only one port is specified on the Kubernetes service as multiple ports are not currently supported Signed-off-by: Michelle Noorali <minooral@microsoft.com>
- Loading branch information
Michelle Noorali
committed
Feb 8, 2021
1 parent
c3ced5d
commit 08a1715
Showing
2 changed files
with
40 additions
and
45 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