Start Single Kubernetes Cluster on AWS EC2

[code lanaguage=”bash”]

# get a copy of kubernetes source

$ git clone https://github.com/rootfs/kubernetes; cd kubernetes

# put AWS access key id and secret in ~/.aws/credentials like the following
# ~/.aws/credentials
#[default]
#aws_access_key_id = ……
#aws_secret_access_key = ….

# get the host name from EC2 management console and use host name as override
$ ALLOW_PRIVILEGED=true LOG_LEVEL=5 CLOUD_PROVIDER="aws" HOSTNAME_OVERRIDE="ip-172-18-14-238.ec2.internal" hack/local-up-cluster.sh
[/code]

Leave a Reply