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:
curlwhich acts as our client applicationlinkerdfor proxying requests to our servicehelloworldexample serviceconsulas our service discovery back-endconsul-registratorto 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 -dTo make sure everything is working properly run the following command:
$ curl localhost:4140/helloworldYou will get the following response:
Hello!