Skip to content

Instantly share code, notes, and snippets.

@zxkane
Last active March 1, 2022 07:18
Show Gist options
  • Save zxkane/4bceb2b5793c49f864e2971aa894cefe to your computer and use it in GitHub Desktop.
Save zxkane/4bceb2b5793c49f864e2971aa894cefe to your computer and use it in GitHub Desktop.
eksctl-collections
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: gitops-cluster-prod
region: ap-southeast-1
version: '1.21'
karpenter:
version: 0.4.3
createServiceAccount: true
managedNodeGroups:
- name: ng-x86
instanceType: m6i.xlarge
desiredCapacity: 1
minSize: 1
maxSize: 4
volumeSize: 200
privateNetworking: false
ssh:
allow: false
cloudWatch:
clusterLogging:
enableTypes:
- '*'
iam:
withOIDC: true
vpc:
subnets:
private:
ap-southeast-1c:
id: subnet-0cdfd2691a237c7a1
ap-southeast-1a:
id: subnet-094188eb9ff05f166
ap-southeast-1b:
id: subnet-0ec79c49d64d714a5
public:
ap-southeast-1c:
id: subnet-0efbc28467f932ca1
ap-southeast-1a:
id: subnet-0b01f2c0861e6a224
ap-southeast-1b:
id: subnet-07e7deae145a056bc
addons:
- name: vpc-cni
version: 1.10.2
tags:
team: eks
- name: coredns
version: 1.8.4
- name: aws-ebs-csi-driver
version: 1.4.0
gitops:
flux:
gitProvider: gitlab
flags:
owner: zxkane
repository: eks-gitops
private: 'true'
personal: 'true'
branch: master
namespace: flux-system
path: clusters/gitops-prod
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: gitops-cluster-staging
region: ap-southeast-1
version: '1.21'
karpenter:
version: 0.4.3
createServiceAccount: true
managedNodeGroups:
- name: ng-x86
instanceType: m6i.xlarge
desiredCapacity: 1
minSize: 1
maxSize: 4
volumeSize: 200
privateNetworking: false
ssh:
allow: false
cloudWatch:
clusterLogging:
enableTypes:
- '*'
iam:
withOIDC: true
vpc:
subnets:
private:
ap-southeast-1c:
id: subnet-06792e699f0c8d7a2
ap-southeast-1a:
id: subnet-0c600b28135f60a22
ap-southeast-1b:
id: subnet-0d75303fb331cbde9
public:
ap-southeast-1c:
id: subnet-f9d00ea0
ap-southeast-1a:
id: subnet-564e5d1f
ap-southeast-1b:
id: subnet-eb29ca8d
addons:
- name: vpc-cni
version: 1.10.2
tags:
team: eks
- name: coredns
version: 1.8.4
- name: aws-ebs-csi-driver
version: 1.4.0
gitops:
flux:
gitProvider: gitlab
flags:
owner: zxkane
repository: eks-gitops
private: 'true'
personal: 'true'
branch: master
namespace: flux-system
path: clusters/gitops-staging
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: gitops-cluster
region: ap-southeast-1
version: '1.21'
karpenter:
version: 0.4.3
createServiceAccount: true
managedNodeGroups:
- name: ng-x86
instanceType: m6i.xlarge
desiredCapacity: 1
minSize: 1
maxSize: 4
volumeSize: 200
privateNetworking: false
ssh:
allow: false
cloudWatch:
clusterLogging:
enableTypes:
- '*'
iam:
withOIDC: true
vpc:
subnets:
private:
ap-southeast-1c:
id: subnet-06792e699f0c8d7a2
ap-southeast-1a:
id: subnet-0c600b28135f60a22
ap-southeast-1b:
id: subnet-0d75303fb331cbde9
public:
ap-southeast-1c:
id: subnet-f9d00ea0
ap-southeast-1a:
id: subnet-564e5d1f
ap-southeast-1b:
id: subnet-eb29ca8d
addons:
- name: vpc-cni
version: 1.10.1
tags:
team: eks
- name: coredns
version: 1.8.4
gitops:
flux:
gitProvider: github
flags:
owner: zxkane
repository: eks-gitops3
private: 'true'
personal: 'true'
branch: main
namespace: flux-system
path: clusters/gitops-cluster
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: nexus-cluster
region: ap-east-1
version: '1.20'
managedNodeGroups:
- name: ng1
instanceType: m5.large
desiredCapacity: 2
minSize: 2
maxSize: 4
volumeSize: 100
privateNetworking: true
ssh:
allow: false
enableSsm: true
cloudWatch:
clusterLogging:
enableTypes:
- '*'
iam:
withOIDC: true
# vpc:
# subnets:
# private:
# cn-northwest-1a:
# id: subnet-085cec3e523c86ebf
# cn-northwest-1b:
# id: subnet-078730fd0f60a4c7c
# cn-northwest-1c:
# id: subnet-09cb64899f8d9e87d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment