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
The following components make up the system:
curl
which acts as our client applicationlinkerd
for proxying requests to our servicehelloworld
example serviceconsul
as our service discovery back-endconsul-registrator
to automatically registers services with consul
System overview
+--------+ +---------+ +----------------------+
| client +----> | linkerd +--> | service (helloworld) |
+--------+ +----^----+ +-------+--------------+
| |
+----+---+ +-------v------------+
| consul <-----+ consul registrator |
+--------+ +--------------------+
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
To make sure everything is working properly run the following command:
$ curl localhost:4140/helloworld
You will get the following response:
Hello!