Skip to content

Latest commit

 

History

History

consul

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Consul

This directory contains a docker-compose environment that demonstrates how to use the consul service discovery back-end with linkerd. It deploys the demonstration environment in a service-to-linker configuration

Overview

The following components make up the system:

  • curl which acts as our client application
  • linkerd for proxying requests to our service
  • helloworld example service
  • consul as our service discovery back-end
  • consul-registrator to automatically registers services with consul

System overview

+--------+      +---------+    +----------------------+
| client +----> | linkerd +--> | service (helloworld) |
+--------+      +----^----+    +-------+--------------+
                     |                 |
                +----+---+     +-------v------------+
                | consul <-----+ consul registrator |
                +--------+     +--------------------+

Startup

The docker-compose.yml file that's included in this directory is configured to run the demo. Start everything with:

$ docker-compose build && docker-compose up -d

Testing the system

To make sure everything is working properly run the following command:

$ curl localhost:4140/helloworld

You will get the following response:

Hello!