-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheks-cluster-config.yaml
48 lines (44 loc) · 1 KB
/
eks-cluster-config.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
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: ${CLUSTER_NAME}
region: ${AWS_REGION}
addons:
- name: vpc-cni
version: latest
attachPolicyARNs:
- arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
iam:
withOIDC: true
serviceAccounts:
- metadata:
name: aws-load-balancer-controller
namespace: kube-system
wellKnownPolicies:
awsLoadBalancerController: true
vpc:
id: ${VPC_ID}
subnets:
public:
${AWS_REGION}a:
id: ${PUBLIC_SUBNET_ID_A}
${AWS_REGION}c:
id: ${PUBLIC_SUBNET_ID_C}
private:
${AWS_REGION}a:
id: ${PRIVATE_SUBNET_ID_A}
${AWS_REGION}c:
id: ${PRIVATE_SUBNET_ID_C}
managedNodeGroups:
- name: ${NODE_GROUP_NAME}
instanceType: ${INSTANCE_TYPE}
desiredCapacity: ${DESIRED_CAPACITY}
minSize: ${MIN_SIZE}
maxSize: ${MAX_SIZE}
iam:
instanceRoleARN: ${NODE_ROLE_ARN}
privateNetworking: true
labels:
role: worker
tags:
nodegroup-role: worker