Giter Site home page Giter Site logo

k8s-coreos-digitalocean's Introduction

k8s-digitalocean-coreos

This repo contains a few Terraform modules that should let you spin up a production-ready Kubernetes cluster on DigitalOcean.

Requirements

  • terraform
  • A DigitalOcean API key with write access (directions here)
  • A DigitalOcean API key with read-only access (used for DropLan)

Getting Started

config.tfvars

Once you have your API keys handy, it's just a matter of setting up the shared configuration that the modules use.

Copy the config.tfvars.template file to config.tfvars. Set the value of the do_read_token variable to a read-only DigitalOcean token for your account.

Next, you'll need to get an etcd discovery token

curl -w "\n" 'https://discovery.etcd.io/new?size=3'
# Should return something like: https://discovery.etcd.io/6a28e078895c5ec737174db2419bb2f3

Set the value of the discovery_url variable to the URL given back by the discovery API. This will let your etcd cluster quickly bootstrap by using the token.

secrets.tfvars

You will also need to provide a DigitalOcean API token with write access to your account along with a ssh key id or fingerprint that has bee nset u in your account.

You should create a secrets.tfvars file with the following content replacing the values as necessary:

ssh_keys = "YOUR_SSH_KEYS"
do_token = "DO_API_WRITE_TOKEN"

Create your etcd cluster

terraform plan -var-file config.tfvars -var-file secrets.tfvars --target module.etcd

Create your Kubernetes cluster

terraform plan -var-file config.tfvars -var-file secrets.tfvars

k8s-coreos-digitalocean's People

Watchers

Doug Campos avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.