Skip to content

Instantly share code, notes, and snippets.

@Kikiodazie
Created March 5, 2023 02:32
Show Gist options
  • Save Kikiodazie/4e2a3cdc79821c5e3e7429a2203647a2 to your computer and use it in GitHub Desktop.
Save Kikiodazie/4e2a3cdc79821c5e3e7429a2203647a2 to your computer and use it in GitHub Desktop.
Demo EKS cluster configuration
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: main-garden-cluster
region: us-east-1
vpc:
subnets:
private:
us-east-1a: { id: <your_us-east-1a_subnet_id> }
us-east-1b: { id: <your_us-east-1b_subnet_id> }
us-east-1c: { id: <your_us-east-1c_subnet_id> }
nodeGroups:
- name: ng-1-workers
labels: { role: workers }
instanceType: t3.small
desiredCapacity: 2
privateNetworking: true
- name: ng-2-builders
labels: { role: builders }
instanceType: t3.small
desiredCapacity: 2
privateNetworking: true
iam:
withAddonPolicies:
imageBuilder: true
@Kikiodazie
Copy link
Author

To create the cluster using eksctl simply run the following command:

$ eksctl create cluster -f eks-cluster.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment