Created
February 10, 2022 18:01
-
-
Save micahlagrange/57c60e106adb47b4e449044b2e86fcf4 to your computer and use it in GitHub Desktop.
A working example of creating a cluster with an existing vpc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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