O'Reilly logo

CoreOS Essentials by Rimantas Mocevicius

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bootstrapping a local cluster

As discussed earlier, we will be installing a three-peer etcd cluster on our computer.

Cloning the coreos-vagrant project

Let's clone the project and get it running. Follow these steps:

  1. In your terminal or command prompt, type this:
    $ mkdir cluster 
    $ cd cluster
    $ git clone https://github.com/coreos/coreos-vagrant.git
    $ cd coreos-vagrant
    $ cpconfig.rb.sampleconfig.rb
    $ cp user-data.sample user-data
    
  2. Now we need to adjust some settings. Edit config.rb and change the file's top part to this example:
    # Size of the CoreOS cluster created by Vagrant $num_instances=3 # Used to fetch a new discovery token for a cluster of size $num_instances $new_discovery_url="https://discovery.etcd.io/new?size=#{$num_instances}" # To automatically ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required