-
Notifications
You must be signed in to change notification settings - Fork 160
/
eks-cluster-managednodes.yaml
41 lines (36 loc) · 1.19 KB
/
eks-cluster-managednodes.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#-------------------------------------------------------------------------
# Manifest File to create AWS EKS Cluster in Custom VPC with ManagedNodes
#
# eksctl create cluster -f eks-cluster.yaml
# eksctl delete cluster -f eks-cluster.yaml
# eksctl update cluster -f eks-cluster.yaml
#
# Copyleft (c) by Denis Astahov 2023
#-------------------------------------------------------------------------
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name : k8s-prod
version: "1.27"
region : eu-west-1
vpc:
subnets:
public:
eu-west-1a: { id: subnet-052450e8205b756ae }
eu-west-1b: { id: subnet-083ba192f0a91e893 }
private:
eu-west-1a: { id: subnet-0bdc7681fe8f09915 }
eu-west-1b: { id: subnet-0670735d9144585d3 }
managedNodeGroups:
- name : worker-group-1
instanceType : m5.large
desiredCapacity : 2
labels : { role: worker1 }
volumeSize : 80
privateNetworking: true
- name : worker-group-2
instanceType : r5.large
desiredCapacity : 2
volumeSize : 100
labels : { role: worker2 }
privateNetworking: true