-
Notifications
You must be signed in to change notification settings - Fork 3.4k
azure: populate ApplicationSecurityGroups field in the new IPConfigurations #15194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Code looks good, small documentation nit. Could you also share how you found out about this or how we can repro?
Azure wants all IPConfigurations to have the same ApplicationSecurityGroups. So if the primary IPConfiguration is already assigned an ApplicationSecurityGroup, adding a new IPConfiguration without any ApplicationSecurityGroup fails. So we should populate ApplicationSecurityGroups field that is the same as ASG of other IPConfiguration. Signed-off-by: Anish Shah <anishshah@google.com>
Unfortunately, I couldn't find any Azure documentation on this. Also, AKS by default doesn't assign any ASG/NSG to the IPConfiguration/NIC on creation and so it would be hard to reproduce this in an AKS cluster. We have a self-managed kubernetes cluster on Azure where we assign ASG to the primary IPConfiguration of the NIC during VMSS Nodepool creation. So when we deployed Cilium, we see errors in
|
Also, I feel this needs a backport to 1.9 (and 1.8 too maybe?) as this is a bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good!
kind ping @twpayne |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @AnishShah
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Azure wants all IPConfigurations to have the same
ApplicationSecurityGroups. So if the primary IPConfiguration is already
assigned an ApplicationSecurityGroup, adding a new IPConfiguration
without any ApplicationSecurityGroup fails. So we should populate
ApplicationSecurityGroups field that is the same as ASG of other
IPConfiguration.