Stránky

Showing posts with label docker. Show all posts
Showing posts with label docker. Show all posts

Monday, May 2, 2016

CoreOS from scratch - Part 2: etcd

In previous post you have learned how to install three CoreOS instances on VirtualBox. Today we'll focus on creating etcd cluster.

Etcd is distributed key value store. Using etcd, CoreOS cluster shares configuration parameters. Etcd is used as well for sharing configuration information's between deployed applications.

There are several ways of how to create CoreOS cluster https://coreos.com/etcd/docs/latest/clustering.html '. We'll use public etcd discovery service one.

Start all CoreOS instances


First step is to boot all three CoreOS instances. After instances are up and running use ssh client to connect.

Obtain etcd token


Since we'll be using public etcd discovery service, we'll need to obtain unique token which will be used for our cluster members. Token can be obtained at:

https://discovery.etcd.io/new?size=3

Save returned token. We will use the same one for each cluster member.

Tuesday, April 26, 2016

CoreOS from scratch - Part 1: OS installation

In the "CoreOS from scratch" series I'll try to explain how to install CoreOS three node cluster on VirtualBox using manual process. I believe that understanding installation "the hard way" leads to better understanding of whats going on by using CoreOS with Vagrant as well as helps you to install CoreOS on bare metal.

But first really very fast description of what CoreOS is.

CoreOS is just like any other Linux Distro based on Gentoo.

Gentoo wiki states:

CoreOS is a new Linux distribution that has been rearchitected to provide features needed to run modern infrastructure stacks.

I think this describes CoreOS quite well. CoreOS is Linux operating system that is specially made to run containers (containerized applications) like Docker or Rocket. Meaning it is not operating system you would like to use for desktop, or as typical Linux server where you install any software your corporate IT environment needs. Besides running containerized applications CoreOS comes with full stack of tools needed to form and operate clusters.