Skip to content
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

Custom AMI and Launch Template support for Managed Nodegroups #2551

Closed
cPu1 opened this issue Aug 17, 2020 · 7 comments
Closed

Custom AMI and Launch Template support for Managed Nodegroups #2551

cPu1 opened this issue Aug 17, 2020 · 7 comments
Assignees
Labels
kind/feature New feature or request

Comments

@cPu1
Copy link
Collaborator

cPu1 commented Aug 17, 2020

EKS now supports specifying a custom AMI and providing a launch template for managed nodegroups. This will allow eksctl to support features that weren't possible before for managed nodegroups.

Add support for missing features using the launch template capability, including the following:

  • Custom AMI (ami)
  • instancePrefix and instanceName to configure the EC2 instance name for a nodegroup
  • securityGroups.attachIDs to add custom security groups
  • ebsOptimized, volumeType, volumeName, volumeEncrypted, volumeKmsKeyID and volumeIOPS
  • maxPodsPerNode
  • preBootstrapCommands and overrideBootstrapCommand
  • disableIMDSv1

Also add support for providing a custom launch template to create a managed nodegroup.

@inductor
Copy link

Can you provide an example of this feature please?

@michaelbeaumont
Copy link
Contributor

Hi @inductor, the docs aren't available at the usual URL yet but check out https://release-0_26--eksctl.netlify.app/usage/launch-template-support/

@kevintangpn
Copy link

Hi,
I used launchTemplate to config yaml
but eksctl respose like

error unmarshaling JSON: while decoding JSON: json: unknown field "launchTemplate"

i've try sample like
https://release-0_26--eksctl.netlify.app/usage/launch-template-support/
https://aws.amazon.com/blogs/containers/introducing-launch-template-and-custom-ami-support-in-amazon-eks-managed-node-groups/

my eksctl version is 0.25

someone can help ? thanks.

@inductor
Copy link

@kevintangpn look at the release number. It's 0.26.

@nsaud01
Copy link

nsaud01 commented Nov 18, 2020

I'm getting that same error:

Error: loading config file "devops-nodegroup.yaml": error unmarshaling JSON: while decoding JSON: json: unknown field "launchTemplate" with eksctl v0.31.0

@nsaud01
Copy link

nsaud01 commented Nov 18, 2020

I see where the error was. My issue was that I was using nodeGroups: when it should've been managedNodeGroups:. Hope that helps someone.

@young-0
Copy link

young-0 commented Aug 8, 2023

I see where the error was. My issue was that I was using nodeGroups: when it should've been managedNodeGroups:. Hope that helps someone.

I have the same issue. It worked for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants