Updating the node label node.kubernetes.io/exclude-from-external-load-balancers
doesn't work as expected
#8649
Labels
kind/bug
Categorizes issue or PR as related to a bug.
What happened:
When updating nodepool or node with label
node.kubernetes.io/exclude-from-external-load-balancers
, it doesn't update the LB Backend Pool and VMSS settings properly.Copy the test scripts to run test scenarios.
chmod +x test.sh ./test.sh create # setup a cluster
Green scenarios
When adding a new node pool with the label, it works as expected that the VMSS and LB have no backend pool configurations. for
test.sh run 01
andtest.sh run 02
But updating the node pool with the label, it produces some unexpected results:
az aks nodepool update
an existing nodepool with the labelRun test script
Result:
Expand
Expect: The VMSS / VMs / LB should update the backend pool configuration to exclude the nodes.
az aks nodepool update
an existing nodepool with the labelfalse
Run test script
Result: It doesn't add backend pool configuration back to LB and VMSS
Expect: The VMSS and VMs should no longer be excluded, and the backend pool configuration should be properly set up (after LB service reconciliation).
kubectl label
a node with the labelRun test script
Result:
Expect:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
For this issue, some clarification is needed regarding the following questions:
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: