-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheks-cluster.yaml-template
63 lines (58 loc) · 1.61 KB
/
eks-cluster.yaml-template
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
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: ${CLUSTER_NAME}
region: eu-north-1
version: "${CLUSTER_VERSION}"
tags:
environment: "${CLUSTER_NAME}"
delete-after: "${DELETE_AFTER}"
team: "${TEAM}"
iam:
withOIDC: true
serviceRoleARN: "arn:aws:iam::894516026745:role/WeaveEksClusterRole"
serviceAccounts:
- metadata:
name: kustomize-controller
namespace: flux-system
attachPolicyARNs:
- "arn:aws:iam::894516026745:policy/WeaveSopsKmsDecrypt"
roleName: eksctl-${CLUSTER_NAME}-sops-decrypt-role
roleOnly: true
- metadata:
name: external-dns
namespace: external-dns
attachPolicyARNs:
- "arn:aws:iam::894516026745:policy/AllowExternalDNSUpdates"
roleName: eksctl-${CLUSTER_NAME}-route53-external-dns-role
roleOnly: false # create role and annotated service account
# Enable private access to the API server.
vpc:
clusterEndpoints:
privateAccess: true
publicAccess: true
nodeGroups:
- name: ${CLUSTER_NAME}-ng-1
instanceType: t3.medium
minSize: 3
maxSize: 3
desiredCapacity: 3
volumeSize: 10
privateNetworking: true
tags:
environment: "${CLUSTER_NAME}"
delete-after: "${DELETE_AFTER}"
team: "${TEAM}"
propagateASGTags: true
iam:
instanceProfileARN: "arn:aws:iam::894516026745:instance-profile/WeaveEksWorkerNodeRole"
gitops:
flux:
gitProvider: github
flags:
owner: "weaveworks"
repository: "clusters-config"
private: "true"
branch: "${BRANCH_NAME}"
namespace: "flux-system"
path: "eksctl-clusters/clusters/${CLUSTER_NAME}"