Skip to content

Instantly share code, notes, and snippets.

@initcron
Created May 28, 2024 07:48
Show Gist options
  • Save initcron/f7f1ee10b389a59fa55cd7d2ba5fb1a6 to your computer and use it in GitHub Desktop.
Save initcron/f7f1ee10b389a59fa55cd7d2ba5fb1a6 to your computer and use it in GitHub Desktop.
EKS Cluster Config
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: eks-cluster-01
region: ap-southeast-1
vpc:
id: "vpc-aaaa"
subnets:
public:
apsoutheast1a:
id: subnet-xxxx
apsoutheast1b:
id: subnet-yyyy
apsoutheast1c:
id: subnet-zzzz
managedNodeGroups:
- name: ng-1-workers
labels: { role: workers }
instanceType: t2.micro
desiredCapacity: 2
maxPodsPerNode: 100
minSize: 1
maxSize: 4
ssh:
allow: true
publicKeyName: xxxx
tags:
k8s.io/cluster-autoscaler/enabled: "true"
k8s.io/cluster-autoscaler/eks-cluster-01: "owned"
iam:
withOIDC: true
serviceRoleARN: arn:aws:iam::xxxxxxxxx:role/EKSClusterServiceRole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment