-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgreen-eks-k8s.yaml
54 lines (48 loc) · 1.24 KB
/
green-eks-k8s.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
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: green-eks-k8s
region: eu-north-1
version: '1.28'
tags:
karpenter.sh/discovery: green-eks-k8s
iam:
withOIDC: true
serviceAccounts:
- metadata:
name: aws-load-balancer-controller
namespace: kube-system
wellKnownPolicies:
awsLoadBalancerController: true
karpenter:
version: 'v0.29.0'
createServiceAccount: true
defaultInstanceProfile: 'KarpenterNodeInstanceProfile'
withSpotInterruptionQueue: true
vpc:
clusterEndpoints:
privateAccess: true
publicAccess: true
cloudWatch:
clusterLogging:
enableTypes: ["*"]
managedNodeGroups:
- name: green-eks-k8s-ng
instanceType: t3.medium
# We use Bottlerocket, because Kepler needs support for cgroup v2, which neither Amazon Linux 2 nor Ubuntu 20.04 LTS have.
# Ubuntu 22.04 and Amazon Linux 2023 do support cgroup v2, but these are not supported by eksctl yet.
amiFamily: Bottlerocket
minSize: 1
maxSize: 5
desiredCapacity: 3
volumeSize: 20
ssh:
allow: false
labels: {role: worker}
tags:
nodegroup-role: worker
iam:
withAddonPolicies:
albIngress: true
awsLoadBalancerController: true
cloudWatch: true