Skip to content

Instantly share code, notes, and snippets.

@micahlagrange
Created February 10, 2022 18:01
Show Gist options
  • Save micahlagrange/57c60e106adb47b4e449044b2e86fcf4 to your computer and use it in GitHub Desktop.
Save micahlagrange/57c60e106adb47b4e449044b2e86fcf4 to your computer and use it in GitHub Desktop.
A working example of creating a cluster with an existing vpc
# Note, you may have to enable mapping public IPs to new instances in existing subnets if not on.
```yaml
---
kind: ClusterConfig
apiVersion: eksctl.io/v1alpha5
metadata:
name: testcluster
region: us-east-1
version: "1.21"
tags:
environment: development
managedNodeGroups:
- name: primary
instanceType: t2.small
minSize: 3
spot: true
vpc:
# remove maybe?
manageSharedNodeSecurityGroupRules: true
nat:
gateway: HighlyAvailable
id: vpc-xxxx
# control-plane sg
securityGroup: sg-xxxx
subnets:
public:
us-east-1c:
id: "subnet-xxxx"
us-east-1d:
id: "subnet-xxxx"
private:
us-east-1c:
id: "subnet-xxxx"
us-east-1d:
id: "subnet-xxxx"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment