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

Add AL2023 launch template task #488

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

cartermckinnon
Copy link
Member

Description of changes:

This adds a task, awscli-eks-cfn-launch-template-al2023, that creates a launch template compatible with AL2023-based EKS node AMIs.

The launch template may be used for a managed nodegroup, with or without an AMI specified, or an unmanaged nodegroup (autoscaling group).

The launch template includes the ability to pass additional options to the kubelet's config file, via the KubeletConfig parameter.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

default: "us-west-2"
description: The region where the cluster is in.
- name: kubernetes-version
default: "1.28"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use the latest k8s version as default please.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, 1.28 is in the other existing Task FYI.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, those are old ones :D, should be updated. Trying to avoid it at least for new ones :D

params:
- name: cluster-name
description: EKS cluster you want to create CFN stack for.
- name: stack-name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can avoid this param and leverage cluster-name ? Usually we try to pass as less params as possible in pipeline def. wdyt ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intention was for this to be a drop-in replacement for the existing LT task, so if this is removed I think it should be done in a later PR

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: awscli-eks-cfn-launch-template-al2023
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we merge this task with already existing task ?

Majority of the stuff is a repeat like this and this ?

wdyt ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel too strongly either way, I went this route because I didn't think combining them would actually be much cleaner. We'd need a new parameter to indicate the "type" of ng-cfn-url that was passed, which is kind of clunky. I'd like to actually use this task in a pipeline before I try to fold it into the existing stuff, in case the params need to change, etc.

@hakuna-matatah hakuna-matatah merged commit cb3ee5c into awslabs:main Feb 26, 2025
7 checks passed
@cartermckinnon cartermckinnon deleted the al2023-lt-task branch February 26, 2025 01:39
hakuna-matatah added a commit to hakuna-matatah/kubernetes-iteration-toolkit that referenced this pull request Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants