-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Attach EFA SG to network interfaces #3467
Conversation
In addition to adding the security group, the efa installers also have to be added to launch template user data. Can we add the following userdata to the launch template
|
@jyotimahapatra I can see that we are already adding things to the UserData here and here, are they not appearing in your template when you enable EFA with eksctl? |
I was only looking at the code before making the comment. I will check the launch template to verify. I will holler if I dont find it. You can disregard my comment. |
pkg/cfn/builder/managed_nodegroup.go
Outdated
var efaSG *gfnt.Value | ||
if api.IsEnabled(m.nodeGroup.EFAEnabled) { | ||
desc := "worker nodes in group " + m.nodeGroup.Name | ||
efaSG = m.addEFASecurityGroup(m.vpcImporter.VPC(), m.clusterConfig.Metadata.Name, desc) | ||
} |
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.
can I ask why we are doing a api.IsEnabled
here and passing the value into the makeLaunchTemplateData
method, when the method already has some api.IsEnabled
going on?
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.
good spot, moved it.
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.
tidy
Description
Add the EFA sg to the network cards in the launch template for managed & unmanaged nodes.
Before
After
Checklist
README.md
, or theuserdocs
directory)area/nodegroup
) and kind (e.g.kind/improvement
)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯