Skip to content

Commit 06faa36

Browse files
committed
Specify region in manager commands
1 parent f79afa3 commit 06faa36

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

manager/install_cortex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

155155
echo -e "\nInstalling Cortex ..."
156156

manager/install_eks.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ set -e
1919
echo -e "\nSpinning up the cluster ... (this will about 15 minutes)"
2020

2121
echo
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

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

manager/manifests/cluster-autoscaler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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

1717
apiVersion: v1
1818
kind: ServiceAccount

manager/uninstall_cortex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
set -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

2121
echo -e "\nUninstalling Cortex ..."
2222

manager/uninstall_eks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ set -e
1919
echo -e "\nSpinning down the cluster ... (this will take a few minutes)"
2020

2121
echo
22-
eksctl delete cluster --name=$CORTEX_CLUSTER
22+
eksctl delete cluster --name=$CORTEX_CLUSTER --region=$CORTEX_REGION
2323

2424
echo -e "\n✓ Spun down the cluster"

manager/uninstall_operator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -e
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

2323
echo -e "\nUninstalling the Cortex operator ..."
2424

0 commit comments

Comments
 (0)