k3s/docs/getting-started-guides/aws.md

54 lines
1.7 KiB
Markdown
Raw Normal View History

## Getting started on AWS
2014-11-06 11:06:30 +00:00
### Prerequisites
2014-11-06 11:06:30 +00:00
2014-11-06 22:27:15 +00:00
1. You need an AWS account. Visit [http://aws.amazon.com](http://aws.amazon.com) to get started
2. Install and configure [AWS Command Line Interface](http://aws.amazon.com/cli)
3. You need an AWS [instance profile and role](http://docs.aws.amazon.com/IAM/latest/UserGuide/instance-profiles.html) with EC2 full access.
2014-11-06 11:06:30 +00:00
### Cluster turnup
2014-11-06 22:27:15 +00:00
2014-11-18 05:49:56 +00:00
#### Download Kubernetes
##### a) Preferred Option: Install from [0.5 release](https://github.com/GoogleCloudPlatform/kubernetes/releases/tag/v0.5)
2014-11-18 05:41:13 +00:00
1. ```wget https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.5/kubernetes.tar.gz```
2014-11-18 05:49:56 +00:00
2. ```tar -xzf kubernetes.tar.gz; cd kubernetes```
3. ```export PATH=$PATH:$PWD/platforms/<os>/<platform>```
4. __Temporary for v0.5__ : Edit the ```cluster/aws/config-default.sh``` so that ```IMAGE=ami-39501209```
2014-11-18 05:41:13 +00:00
2014-11-18 05:49:56 +00:00
##### b) Alternate Option: Install from source at head
1. ```git clone https://github.com/GoogleCloudPlatform/kubernetes.git```
2. ```cd kubernetes; make release```
2014-11-18 05:49:56 +00:00
3. ```export PATH=$PATH:$PWD/_output/local/bin/<os>/<platform>```
2014-11-24 16:09:08 +00:00
#### Turn up the cluster
2014-11-06 11:06:30 +00:00
```
2014-11-06 22:27:15 +00:00
export KUBERNETES_PROVIDER=aws
cluster/kube-up.sh
2014-11-06 11:06:30 +00:00
```
The script above relies on AWS S3 to deploy the software to instances running in EC2.
2014-11-06 11:06:30 +00:00
2014-11-18 05:41:13 +00:00
Once the cluster is up, it will print the ip address of your cluster.
```
export KUBERNETES_MASTER=https://<ip-address>
```
2014-11-18 05:49:56 +00:00
Also setup your path to point to the released binaries:
```
```
2014-11-06 22:27:15 +00:00
### Running examples
Take a look at [next steps](https://github.com/GoogleCloudPlatform/kubernetes#where-to-go-next)
2014-11-06 11:06:30 +00:00
2014-11-06 22:27:15 +00:00
### Tearing down the cluster
2014-11-06 11:06:30 +00:00
```
2014-11-06 22:27:15 +00:00
cd kubernetes
cluster/kube-down.sh
```
2014-11-18 05:49:56 +00:00
### Cloud Formation [optional]
There is a contributed [example](aws-coreos.md) from [CoreOS](http://www.coreos.com) using Cloud Formation.