-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster_template.yaml
69 lines (67 loc) · 2.07 KB
/
cluster_template.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
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: <name>
region: us-east-2
nodeGroups:
- name: m5spot
labels:
project: zip
lifecycle: Ec2Spot
aws.amazon.com/spot: "true"
computetype: cpu
maxSize: 10
minSize: 3
ssh:
allow: true
publicKeyPath: ~/.ssh/laptop.pub
instancesDistribution:
instanceTypes: ["m5.2xlarge","m5a.2xlarge","m5n.2xlarge"]
onDemandPercentageAboveBaseCapacity: 0
onDemandBaseCapacity: 0
spotAllocationStrategy: "capacity-optimized"
taints:
spotInstance: "true:PreferNoSchedule"
tags:
k8s.io/cluster-autoscaler/node-template/label/lifecycle: Ec2Spot
k8s.io/cluster-autoscaler/node-template/label/computetype: cpu
k8s.io/cluster-autoscaler/node-template/label/project: zip
k8s.io/cluster-autoscaler/node-template/taint/spotInstance: "true:PreferNoSchedule"
k8s.io/cluster-autoscaler/node-template/label/aws.amazon.com/spot: "true"
iam:
withAddonPolicies:
autoScaler: true
cloudWatch: true
albIngress: true
- name: p3spot
labels:
project: zip
lifecycle: Ec2Spot
aws.amazon.com/spot: "true"
computetype: gpu
maxSize: 2
minSize: 0
ssh:
allow: true
publicKeyPath: ~/.ssh/laptop.pub
instancesDistribution:
instanceTypes: ["p3.2xlarge"]
onDemandPercentageAboveBaseCapacity: 0
onDemandBaseCapacity: 0
spotAllocationStrategy: "capacity-optimized"
taints:
spotInstance: "true:PreferNoSchedule"
tags:
k8s.io/cluster-autoscaler/node-template/label/lifecycle: Ec2Spot
k8s.io/cluster-autoscaler/node-template/label/computetype: gpu
k8s.io/cluster-autoscaler/node-template/label/project: zip
k8s.io/cluster-autoscaler/node-template/taint/spotInstance: "true:PreferNoSchedule"
k8s.io/cluster-autoscaler/node-template/label/aws.amazon.com/spot: "true"
iam:
withAddonPolicies:
autoScaler: true
cloudWatch: true
albIngress: true
cloudWatch:
clusterLogging:
enableTypes: ["*"]