-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsample_graviton_ekscluster.yaml
132 lines (131 loc) · 3.94 KB
/
sample_graviton_ekscluster.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: multi-arch-test
region: {REGION}
version: "1.21"
vpc:
clusterEndpoints:
publicAccess: true
privateAccess: true
availabilityZones: [{REGION}"a",{REGION}"b"]
iam:
withOIDC: true
serviceAccounts:
- metadata:
name: cluster-autoscaler
namespace: kube-system
labels: {aws-usage: "cluster-ops"}
wellKnownPolicies:
autoScaler: true
roleName: eksctl-cluster-autoscaler-role
- metadata:
name: oss
namespace: oss
labels: {aws-usage: "application"}
attachPolicyARNs:
- arn:aws:iam::{ACCOUNT_ID}:policy/emr-on-eks-nvme-execution-role-policy
managedNodeGroups:
- name: C5_4
instanceType: c5.4xlarge
availabilityZones: [{REGION}"a"]
preBootstrapCommands:
- "IDX=1;for DEV in /dev/nvme[1-9]n1;do sudo mkfs.xfs ${DEV}; sudo mkdir -p /local${IDX}; sudo echo ${DEV} /local${IDX} xfs defaults,noatime 1 2 >> /etc/fstab; IDX=$((${IDX} + 1)); done"
- "sudo mount -a"
- "sudo chown ec2-user:ec2-user /local*"
volumeSize: 20
volumeType: gp3
minSize: 1
desiredCapacity: 1
additionalVolumes:
- volumeName: '/dev/sdf'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdg'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdh'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdi'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
maxSize: 30
tags:
# required for cluster-autoscaler auto-discovery
k8s.io/cluster-autoscaler/enabled: "true"
k8s.io/cluster-autoscaler/eks-nvme: "owned"
- name: C6g_8
instanceType: c6.8xlarge
availabilityZones: [{REGION}"a"]
preBootstrapCommands:
- "IDX=1;for DEV in /dev/nvme[1-9]n1;do sudo mkfs.xfs ${DEV}; sudo mkdir -p /local${IDX}; sudo echo ${DEV} /local${IDX} xfs defaults,noatime 1 2 >> /etc/fstab; IDX=$((${IDX} + 1)); done"
- "sudo mount -a"
- "sudo chown ec2-user:ec2-user /local*"
volumeSize: 20
volumeType: gp3
minSize: 1
desiredCapacity: 1
additionalVolumes:
- volumeName: '/dev/sdf'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdg'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdh'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdi'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
maxSize: 30
tags:
# required for cluster-autoscaler auto-discovery
k8s.io/cluster-autoscaler/enabled: "true"
k8s.io/cluster-autoscaler/eks-nvme: "owned"
- name: C7g_8
instanceType: c7g.8xlarge
availabilityZones: [{REGION}"b"]
preBootstrapCommands:
- "IDX=1;for DEV in /dev/nvme[1-9]n1;do sudo mkfs.xfs ${DEV}; sudo mkdir -p /local${IDX}; sudo echo ${DEV} /local${IDX} xfs defaults,noatime 1 2 >> /etc/fstab; IDX=$((${IDX} + 1)); done"
- "sudo mount -a"
- "sudo chown ec2-user:ec2-user /local*"
volumeSize: 20
volumeType: gp3
minSize: 1
desiredCapacity: 1
additionalVolumes:
- volumeName: '/dev/sdf'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdg'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdh'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
- volumeName: '/dev/sdi'
volumeSize: 128
volumeType: io1
volumeIOPS: 6400
maxSize: 30
tags:
# required for cluster-autoscaler auto-discovery
k8s.io/cluster-autoscaler/enabled: "true"
k8s.io/cluster-autoscaler/eks-nvme: "owned"
# enable all of the control plane logs
cloudWatch:
clusterLogging:
enableTypes: ["*"]