Pulumi/eks set a default NodeGroup to AMI?TypeScript
Sure, to create an EKS cluster and set an AMI for the default NodeGroup, you can use Pulumi's EKS package. Here's an example of how to achieve this:
Make sure to replace
<your_AMI_id>with actual values.
subnetIdsare the ID of the VPC and the subnet IDs where you want to deploy your cluster.
amiIdis the Amazon Machine Image ID that will be used for each of the EC2 instances in the node groups of this EKS cluster. AMI defines the OS and it's common to use the latest EKS-optimized Amazon Linux 2 for EKS node groups.
instanceTypeis the type of EC2 instances to use in the node group. The choice here depends on the workload you plan to run in the cluster.
maxSizecontrol the scaling properties of your node group.
This code will create an EKS cluster with a default node group using the provided AMI ID. The EC2 instances in this cluster will be of type "t2.medium", and auto-scaling will ensure there are always between 1 and 3 instances.
Find more information in the NodeGroup component documentation.