-
Notifications
You must be signed in to change notification settings - Fork 134
/
boot-master-branch.sh
30 lines (24 loc) · 1.06 KB
/
boot-master-branch.sh
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
#!/usr/bin/env bash
# This is where VMware stores templates/scripts for the master branch of this repository
S3_BUCKET=vmware-aws-quickstart-test
S3_PREFIX=vmware/kubernetes/master/
# Where to place your cluster
REGION=us-west-2
AZ=us-west-2b
# What to name your CloudFormation stack
STACK=VMware-Kubernetes
# What SSH key you want to allow access to the cluster (must be created ahead of time in your AWS EC2 account)
KEYNAME=mykey
# What IP addresses should be able to connect over SSH and over the Kubernetes API
INGRESS=0.0.0.0/0
aws cloudformation create-stack \
--region $REGION \
--stack-name $STACK \
--template-url "https://${S3_BUCKET}.s3.amazonaws.com/${S3_PREFIX}templates/kubernetes-cluster-with-new-vpc.template" \
--parameters \
ParameterKey=AvailabilityZone,ParameterValue=$AZ \
ParameterKey=KeyName,ParameterValue=$KEYNAME \
ParameterKey=AdminIngressLocation,ParameterValue=$INGRESS \
ParameterKey=QSS3BucketName,ParameterValue=${S3_BUCKET} \
ParameterKey=QSS3KeyPrefix,ParameterValue=${S3_PREFIX} \
--capabilities=CAPABILITY_IAM