March 2020
Intermediate to advanced
626 pages
14h 45m
English
We can register an external service with a built-in /health REST endpoint. The Consul dashboard or the Consul monitor command can invoke the /health endpoint to monitor the health of the external service. This feature makes Consul useful for integration purposes.
Let's understand this through an example.
In this section, we will extract a go binary from the counting microservice and run it on the VM host as a systemd service. Copy the counting-service Go binary from the counting pod's /app directory to the host's home directory and then make it executable. Now, follow these steps:
$ kubectl -n consul -c counting cp counting:counting-service ~/counting-service ...
Read now
Unlock full access