File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ set -e
18
18
19
19
echo -e " \nSpinning up the cluster ... (this will take about 15 minutes)\n"
20
20
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 -
30
22
31
23
echo -e " \n✓ Spun up the cluster"
You can’t perform that action at this time.
0 commit comments