feat: Add support for AL2023 nodeadm user data (#2942)

This commit is contained in:
Bryant Biggs
2024-02-29 19:12:50 -05:00
committed by GitHub
parent e6c3e90a02
commit 7c99bb19cd
18 changed files with 599 additions and 38 deletions

View File

@@ -86,6 +86,29 @@ module "eks" {
}
}
# AL2023 node group utilizing new user data format which utilizes nodeadm
# to join nodes to the cluster (instead of /etc/eks/bootstrap.sh)
al2023_nodeadm = {
platform = "al2023"
cloudinit_pre_nodeadm = [
{
content_type = "application/node.eks.aws"
content = <<-EOT
---
apiVersion: node.eks.aws/v1alpha
kind: NodeConfig
spec:
kubelet:
config:
shutdownGracePeriod: 30s
featureGates:
DisableKubeletCloudCredentialProviders: true
EOT
}
]
}
# Default node group - as provided by AWS EKS using Bottlerocket
bottlerocket_default = {
# By default, the module creates a launch template to ensure tags are propagated to instances, etc.,