Skip to content

Linuturk/consul-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consul-demo

Configuration files for a consul demo

Requirements

Start Demo

  • watch docker-compose ps
  • bash start_demo.sh

Scale to 3 Servers

docker-compose scale server=2

Query DNS API

docker exec consuldemo_client_1 dig -p 8600 @localhost nginx.service.dc1.consul

Query HTTP API

docker exec consuldemo_client_1 curl -s http://localhost:8500/v1/health/service/nginx | python -m json.tool

HAProxy Links

End Demo

bash end_demo.sh

About

Configuration files for a consul demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published