Public | Automated Build

Last pushed: a month ago
Short Description
kube-aws CoreOS/Kubernetes tool built into Docker.
Full Description

kube-aws tool for provisioning a CoreOS/Kubernetes cluster on AWS

Summary

  • A Docker build for the kube-aws command line tool, used to build Kubernetes on AWS. For more info, see Kubernetes on AWS
  • This image is built from the Alpine Linux base image.

Requirements

  • Docker :whale: - if you are on Mac, checkout the Docker Toolbox
  • An AWS account and API credentials - AWS

To build the Docker image and provision a cluster

  • Create a local cluster.yaml config file - for help, see the Kube AWS Cluster Config
  • Build the image using docker
    $ docker build -t kube-aws .
    
  • Run the kube-aws container to provision a cluster
    $ docker run -v $(pwd):/root/ -e AWS_ACCESS_KEY_ID='foo' -e AWS_SECRET_ACCESS_KEY='bar' -e AWS_DEFAULT_REGION='eu-west-1' --rm kube-aws kube-aws up
    
  • A kubectl config file will then be written to ./clusters/<cluster-name>/kubeconfig, which can be used to interact with your Kubernetes cluster like so:
    $ kubectl --kubeconfig=clusters/<cluster-name>/kubeconfig get nodes
    
  • To destroy the cluster, run:
    $ docker run -v $(pwd):/root/ -e AWS_ACCESS_KEY_ID='foo' -e AWS_SECRET_ACCESS_KEY='bar' -e AWS_DEFAULT_REGION='eu-west-1' --rm kube-aws kube-aws destroy <cluster-name>
    

Alternatively, you can use the Docker Hub automated build

$ docker pull danielwhatmuff/kube-aws-docker

Contributing

File issues in GitHub to report bugs or issue a pull request to contribute.

Docker Pull Command
Owner
danielwhatmuff
Source Repository