Skip to content

Commit b0629be

Browse files
committed
Use file for eksctl configuration
1 parent 7c1fabd commit b0629be

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

manager/eks.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: eksctl.io/v1alpha5
2+
kind: ClusterConfig
3+
4+
metadata:
5+
name: $CORTEX_CLUSTER
6+
region: $CORTEX_REGION
7+
version: "1.13"
8+
9+
availabilityZones: $CORTEX_ZONES
10+
11+
nodeGroups:
12+
- name: ng-1
13+
instanceType: $CORTEX_NODE_TYPE
14+
minSize: $CORTEX_NODES_MIN
15+
maxSize: $CORTEX_NODES_MAX
16+
desiredCapacity: $CORTEX_NODES_MIN
17+
ami: auto
18+
iam:
19+
withAddonPolicies:
20+
autoScaler: true

manager/install_eks.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ set -e
1818

1919
echo -e "\nSpinning up the cluster ... (this will take about 15 minutes)\n"
2020

21-
eksctl create cluster --name=$CORTEX_CLUSTER \
22-
--region=$CORTEX_REGION \
23-
--zones=$CORTEX_ZONES \
24-
--node-type=$CORTEX_NODE_TYPE \
25-
--nodes-min=$CORTEX_NODES_MIN \
26-
--nodes-max=$CORTEX_NODES_MAX \
27-
--node-ami=auto \
28-
--version=1.13 \
29-
--asg-access
21+
envsubst < eks.yaml | eksctl create cluster -f -
3022

3123
echo -e "\n✓ Spun up the cluster"

0 commit comments

Comments
 (0)