Skip to content

Instantly share code, notes, and snippets.

@dims
Last active January 22, 2024 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dims/d052a9d7bb5f1fe0807b08bed6c5e13e to your computer and use it in GitHub Desktop.
Save dims/d052a9d7bb5f1fe0807b08bed6c5e13e to your computer and use it in GitHub Desktop.
EKS cluster with a single node using specific AMI

To create

eksctl create cluster -f eks-demo-cluster-001.yaml

To delete

eksctl delete cluster eks-demo-cluster-001 --region us-east-1

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: eks-demo-cluster-001
region: us-east-1
version: "1.28"
managedNodeGroups:
- name: managed-ng-1
instanceType: t2.large
minSize: 2
maxSize: 3
amiFamily: AmazonLinux2
ami: ami-04dd0a950e71429b8
ssh:
allow: true
publicKeyPath: "~/.ssh/id_ed25519.pub"
overrideBootstrapCommand: |
#!/bin/bash
/etc/eks/bootstrap.sh eks-demo-cluster-001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment