Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Latest commit

 

History

History
45 lines (31 loc) · 1.15 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.15 KB

Run Consul

 % consul --version
Consul v1.8.5
Revision 1e03567d3
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
consul agent -dev

Run Nomad

% nomad --version                          
Nomad v0.12.5 (514b0d667b57068badb43795103fb7dd3a9fbea7)
nomad agent -dev

Build docker image and expose as tar

docker build . -t example
docker save example -o example.tar
python3 -m http.server 8888

Create Job

curl -XPUT -d @job.json http://127.0.0.1:4646/v1/job/example

Issues

  • The healthcheck command in the example-2 task throws an exception. However, in the Nomad UI, both tasks are reported as having failed with Task not running for min_healthy_time of 10s by deadline.

Nomad both tasks fail

  • The python-server-2 healthcheck is reported as a warning rather than a failure.

Consul warning

  • The python-server-2 healthcheck output only contains output written to Stdout, not Stderr.

Consul no stderr