Skip to content

upmc-enterprises/kubeadm-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubeadm quickstart on aws

This is a quickstart to get running with the new kubeadm tool which delivered in Kubernetes 1.4. Please see docs here for information about this new tool: http://kubernetes.io/docs/getting-started-guides/kubeadm/

The goal of this project is to build out a simple cluster on AWS utilizing Terraform to build out infrastructure, then use kubeadm to bootstrap a Kubernetes cluster.

How it works

The terraform script builds out a new VPC in your account and 3 corresponding subnets. It will also provision an internet gateway and setup a routing table to allow internet access.

NOTE: This isn't ready for production!

Run it!

  1. Clone the repo: git clone https://github.com/upmc-enterprises/kubeadm-aws.git
  • Install Terraform
  • Generate token: python -c 'import random; print "%0x.%0x" % (random.SystemRandom().getrandbits(3*8), random.SystemRandom().getrandbits(8*8))'
  • Generate ssh keys: ssh-keygen -f k8s-test
  • Run terraform plan: terraform plan -var k8s-ssh-key="$(cat k8s-test.pub)" -var 'k8stoken=<token>'
  • Build out infrastructure: terraform apply -var k8s-ssh-key="$(cat k8s-test.pub)" -var 'k8stoken=<token>'
  • ssh to kube master and run something: ssh ubuntu@$(terraform output master_dns) -i k8s-test
  • Done!

About

Built by UPMC Enterprises in Pittsburgh, PA. http://enterprises.upmc.com/

About

Bootstrap a Kubernetes cluster on AWS using Terraform and kubeadm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published