Hashicorp Consul Connect Sidecar Example
- Hashicorp Consul 1.4.0
- Docker
- docker-compose
- Python flask
- Golang
Install Python Framework flask according to the platform of each LInux OS.
Start / Stop Consul Process
$ systemctl start consul
$ systemctl stop consul
Start Side Car
- hoge
$ consul connect proxy -sidecar-for hoge
- page
$ consul connect proxy -sidecar-for page
- nginx
$ consul connect proxy -sidecar-for nginx
$ curl http://localhost:<SERVICE?PORT>/hoge
$ curl http://localhost:<SERVICE?PORT>/page