mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	
		
			
				
	
	
	
		
			2.0 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.0 KiB
		
	
	
	
	
	
	
	
Getting started on AWS
Prerequisites
- You need an AWS account. Visit http://aws.amazon.com to get started
- Install and configure AWS Command Line Interface
- You need an AWS instance profile and role with EC2 full access.
Cluster turnup
Download Kubernetes
a) Preferred Option: Install from 0.10.0 release
- wget https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.10.0/kubernetes.tar.gz
- tar -xzf kubernetes.tar.gz; cd kubernetes
- export PATH=$PATH:$PWD/platforms/<os>/<platform>
b) Alternate Option: Install from source at head
- git clone https://github.com/GoogleCloudPlatform/kubernetes.git
- cd kubernetes; make release
- export PATH=$PATH:$PWD/_output/local/bin/<os>/<platform>
Turn up the cluster
export KUBERNETES_PROVIDER=aws
cluster/kube-up.sh
The script above relies on AWS S3 to deploy the software to instances running in EC2.
NOTE: The script will provision a new VPC and a 5 node k8s cluster in us-west-2 (Oregon). It'll also try to create or reuse a keypair called "kubernetes", and IAM profiles called "kubernetes-master" and "kubernetes-minion". If these already exist, make sure you want them to be used here.
Once the cluster is up, it will print the ip address of your cluster, this process takes about 5 to 10 minutes.
export KUBERNETES_MASTER=https://<ip-address>
Also setup your path to point to the released binaries:
export PATH=$PATH:$PWD:/cluster
Running examples
Take a look at next steps
Tearing down the cluster
cd kubernetes
cluster/kube-down.sh
Cloud Formation [optional]
There is a contributed example from CoreOS using Cloud Formation.
