-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy path3-example.yaml
36 lines (36 loc) · 859 Bytes
/
3-example.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
---
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: cluster-irsa
region: us-east-1
availabilityZones:
- us-east-1a
- us-east-1b
iam:
withOIDC: true
serviceAccounts:
- metadata:
name: foo
namespace: staging
attachPolicyARNs:
- arn:aws:iam::<your-account-id>:policy/AllowListAllMyBuckets
# role has to start with eksctl-*
roleName: eksctl-list-s3-buckets
roleOnly: true
- metadata:
name: cluster-autoscaler
namespace: kube-system
wellKnownPolicies:
autoScaler: true
roleName: eksctl-cluster-autoscaler
roleOnly: true
managedNodeGroups:
- name: general
tags:
# EC2 tags required for cluster-autoscaler auto-discovery
k8s.io/cluster-autoscaler/enabled: "true"
k8s.io/cluster-autoscaler/cluster-irsa: "owned"
desiredCapacity: 1
minSize: 1
maxSize: 10