File tree Expand file tree Collapse file tree 6 files changed +12
-6
lines changed Expand file tree Collapse file tree 6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ function validate_cortex() {
150150 fi
151151}
152152
153- eksctl utils write-kubeconfig --name=$CORTEX_CLUSTER | grep -v " saved kubeconfig as" || true
153+ eksctl utils write-kubeconfig --name=$CORTEX_CLUSTER --region= $CORTEX_REGION | grep -v " saved kubeconfig as" || true
154154
155155echo -e " \nInstalling Cortex ..."
156156
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ set -e
1919echo -e " \nSpinning up the cluster ... (this will about 15 minutes)"
2020
2121echo
22- eksctl create cluster --name=$CORTEX_CLUSTER --asg-access --node-type=$CORTEX_NODE_TYPE --nodes-min=$CORTEX_NODES_MIN --nodes-max=$CORTEX_NODES_MAX
22+ eksctl create cluster --name=$CORTEX_CLUSTER \
23+ --region=$CORTEX_REGION \
24+ --node-type=$CORTEX_NODE_TYPE \
25+ --nodes-min=$CORTEX_NODES_MIN \
26+ --nodes-max=$CORTEX_NODES_MAX \
27+ --version=1.13 \
28+ --asg-access
2329
2430echo -e " \n✓ Spun up the cluster"
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- # Source: https://github.com/kubernetes/autoscaler/tree /cluster-autoscaler-1.15.0/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml
15+ # Source: https://github.com/kubernetes/autoscaler/blob /cluster-autoscaler-1.15.0/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml
1616
1717apiVersion : v1
1818kind : ServiceAccount
Original file line number Diff line number Diff line change 1616
1717set -e
1818
19- eksctl utils write-kubeconfig --name=$CORTEX_CLUSTER | grep -v " saved kubeconfig as" || true
19+ eksctl utils write-kubeconfig --name=$CORTEX_CLUSTER --region= $CORTEX_REGION | grep -v " saved kubeconfig as" || true
2020
2121echo -e " \nUninstalling Cortex ..."
2222
Original file line number Diff line number Diff line change 1919echo -e " \nSpinning down the cluster ... (this will take a few minutes)"
2020
2121echo
22- eksctl delete cluster --name=$CORTEX_CLUSTER
22+ eksctl delete cluster --name=$CORTEX_CLUSTER --region= $CORTEX_REGION
2323
2424echo -e " \n✓ Spun down the cluster"
Original file line number Diff line number Diff line change 1818
1919# Note: if namespace is changed, the old namespace will not be deleted
2020
21- eksctl utils write-kubeconfig --name=$CORTEX_CLUSTER | grep -v " saved kubeconfig as" || true
21+ eksctl utils write-kubeconfig --name=$CORTEX_CLUSTER --region= $CORTEX_REGION | grep -v " saved kubeconfig as" || true
2222
2323echo -e " \nUninstalling the Cortex operator ..."
2424
You can’t perform that action at this time.
0 commit comments