Skip to content

Conversation

@vakalapa
Copy link
Contributor

@vakalapa vakalapa commented Sep 12, 2022

Reason for Change:

Right now, GetEndpointsForNetwork gives all endpoint including remote endpoints which are not required. This is causing duplicate endpoints for the same IP.

This change will only take all endpoints while cleaning up (for backward compatibility) and will filter only local endpoints for all other purposes.

Issue Fixed:

Requirements:

Notes:

@vakalapa vakalapa requested a review from a team as a code owner September 12, 2022 19:55
@vakalapa vakalapa requested review from matmerr and removed request for a team September 12, 2022 19:55
@huntergregory huntergregory added the npm Related to NPM. label Sep 23, 2022
@huntergregory
Copy link
Contributor

On 2 separate nodes, verified that we ignore all remote endpoints and do not ignore any local endpoints.

Tested a cluster with 2 windows nodes and 1 master node. There were 2 customer Pods per windows node. 11 off-node kube-system Pods had corresponding HNS Endpoints. There were also 6 off-node kube-system Pods which didn't have remote HNS Endpoints. None of the customer Pods (on Windows nodes) had corresponding remote HNS Endpoints.

The 11 ignored in this example:

NAMESPACE     NAME                                  READY   STATUS    RESTARTS      AGE   IP             NODE                             
kube-system   coredns-b4854dd98-cjk6d               1/1     Running   0             20h   10.224.0.12    aks-nodepool1-23606512-vmss000000
kube-system   azure-npm-win-pls9s                   1/1     Running   0             19m   10.224.0.134   akswin22000001                   
kube-system   metrics-server-668f55b87d-l2sxh       1/1     Running   0             20h   10.224.0.15    aks-nodepool1-23606512-vmss000000
kube-system   azure-ip-masq-agent-n28dm             1/1     Running   0             20h   10.224.0.4     aks-nodepool1-23606512-vmss000000
kube-system   azure-npm-rg4p7                       1/1     Running   0             20h   10.224.0.4     aks-nodepool1-23606512-vmss000000
kube-system   cloud-node-manager-skmr4              1/1     Running   0             20h   10.224.0.4     aks-nodepool1-23606512-vmss000000
kube-system   csi-azuredisk-node-k26h5              3/3     Running   0             20h   10.224.0.4     aks-nodepool1-23606512-vmss000000
kube-system   csi-azurefile-node-2j2tm              3/3     Running   0             20h   10.224.0.4     aks-nodepool1-23606512-vmss000000
kube-system   kube-proxy-g2tjk                      1/1     Running   0             20h   10.224.0.4     aks-nodepool1-23606512-vmss000000
kube-system   coredns-b4854dd98-vbk47               1/1     Running   0             20h   10.224.0.5     aks-nodepool1-23606512-vmss000000
kube-system   metrics-server-668f55b87d-t8rpt       1/1     Running   0             20h   10.224.0.6     aks-nodepool1-23606512-vmss000000

@vakalapa vakalapa merged commit 8cd63a8 into master Dec 13, 2022
@vakalapa vakalapa deleted the vakr/newremoteend branch December 13, 2022 00:07
rjdenney pushed a commit to rjdenney/azure-container-networking that referenced this pull request Jan 19, 2023
…or cleanup. (Azure#1606)

* fix: [NPM-WIN] Get only local endpoints to apply ACLs on

* addding a const

* fix lints

* update UTs (TODO: uncomment multi-job test when fixed)

* resolve lint again

* true backwards compatibility

* resolve TODO by uncommenting UT

* fix lint

Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
smittal22 pushed a commit to smittal22/azure-container-networking that referenced this pull request Jan 26, 2023
…or cleanup. (Azure#1606)

* fix: [NPM-WIN] Get only local endpoints to apply ACLs on

* addding a const

* fix lints

* update UTs (TODO: uncomment multi-job test when fixed)

* resolve lint again

* true backwards compatibility

* resolve TODO by uncommenting UT

* fix lint

Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
smittal22 pushed a commit to smittal22/azure-container-networking that referenced this pull request Jan 30, 2023
…or cleanup. (Azure#1606)

* fix: [NPM-WIN] Get only local endpoints to apply ACLs on

* addding a const

* fix lints

* update UTs (TODO: uncomment multi-job test when fixed)

* resolve lint again

* true backwards compatibility

* resolve TODO by uncommenting UT

* fix lint

Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
smittal22 pushed a commit to smittal22/azure-container-networking that referenced this pull request Feb 3, 2023
…or cleanup. (Azure#1606)

* fix: [NPM-WIN] Get only local endpoints to apply ACLs on

* addding a const

* fix lints

* update UTs (TODO: uncomment multi-job test when fixed)

* resolve lint again

* true backwards compatibility

* resolve TODO by uncommenting UT

* fix lint

Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

npm Related to NPM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants