Skip to content

Commit 27d89e6

Browse files
committed
chore(aws): explicitly download k8s release rather than curl|bash in one go
1 parent 7bb3494 commit 27d89e6

1 file changed

Lines changed: 27 additions & 17 deletions

File tree

src/quickstart/provider/aws/boot.md

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,31 @@ REGIONS ec2.us-west-1.amazonaws.com us-west-1
2525
REGIONS ec2.us-west-2.amazonaws.com us-west-2
2626
```
2727

28+
## Download and Unpack Kubernetes
29+
30+
First, make a directory to hold the Kubernetes release files:
31+
32+
```
33+
$ mkdir my-first-cluster
34+
$ cd my-first-cluster
35+
```
36+
37+
Download Kubernetes release v1.2.4, and extract the archive on your machine.
38+
39+
This archive has everything that you need to launch Kubernetes. It weighs in around 500MB, so it may take some time to download:
40+
41+
```
42+
$ curl -sSL https://storage.googleapis.com/kubernetes-release/release/v1.2.4/kubernetes.tar.gz -O
43+
$ tar -xvzf kubernetes.tar.gz
44+
$ cd kubernetes
45+
$ ls
46+
LICENSES README.md Vagrantfile cluster/ contrib/ docs/ examples/ platforms/ server/ third_party/ version
47+
```
48+
2849
## Configure the Kubernetes Environment
2950

3051
Before calling the Kubernetes setup scripts, we need to change a few defaults so that Deis Workflow works best. Type
31-
each of these commands into your terminal application before calling `curl -sS https://get.k8s.io | bash`.
52+
each of these commands into your terminal application before calling `kube-up.sh`.
3253

3354
First, enable insecure registry support for Docker:
3455
```
@@ -65,21 +86,7 @@ We are now ready to boot our first Kubernetes cluster on AWS!
6586
Since this script does a **lot** of stuff, we'll break it into sections.
6687

6788
```
68-
$ curl -sS https://get.k8s.io | bash
69-
Downloading kubernetes release v1.2.4 to /Users/jhansen/p/docs/kubernetes.tar.gz
70-
--2016-05-11 15:31:14-- https://storage.googleapis.com/kubernetes-release/release/v1.2.4/kubernetes.tar.gz
71-
Resolving storage.googleapis.com... 216.58.194.208, 2607:f8b0:4005:805::2010
72-
Connecting to storage.googleapis.com|216.58.194.208|:443... connected.
73-
HTTP request sent, awaiting response... 200 OK
74-
Length: 496696744 (474M) [application/x-tar]
75-
Saving to: 'kubernetes.tar.gz'
76-
77-
kubernetes.tar.gz 100%[============================================================================>] 473.69M 2.16MB/s in 4m 37s
78-
79-
2016-05-11 15:35:50 (1.71 MB/s) - 'kubernetes.tar.gz' saved [496696744/496696744]
80-
81-
Unpacking kubernetes release v1.2.4
82-
89+
$ ./clusters/kube-up.sh
8390
Creating a kubernetes on aws...
8491
... Starting cluster in us-west-1c using provider aws
8592
... calling verify-prereqs
@@ -229,7 +236,6 @@ Installation successful!
229236
A few things to note! Your Kubernetes master is now up and running and we are ready to install Deis Workflow. If you
230237
need to access the Kubernetes master the default username is `admin` and the ssh key lives at `~/.ssh/kube_aws_rsa`.
231238

232-
233239
```
234240
$ ssh -i ~/.ssh/kube_aws_rsa admin@52.9.206.49
235241
@@ -250,4 +256,8 @@ For Kubernetes copyright and licensing information, see:
250256
admin@ip-172-20-0-9:~$
251257
```
252258

259+
When you are finished with the Kubernetes cluster, you may terminate the AWS resources by running
260+
`./clusters/kube-down.sh`. If you are using a new shell environement you will need to set the environment variables we
261+
used above so `kube-down.sh` can find the right cluster.
262+
253263
You are now ready to [install Deis Workflow](install-aws.md)

0 commit comments

Comments
 (0)