July 2017
Intermediate to advanced
656 pages
16h 1m
English
Fuge exposes information on both environment variables and DNS for us through the info and zone commands to aid us in debugging our service discovery process. Let's try this out.
Let's start the Fuge shell and then run the info command for a service:
$ fuge shell fuge/fuge.ymlfuge> info auditservice full
Fuge will display the environment that is passed into the auditservice, which should look like the following:
command: node index.js directory: ... environment: DNS_HOST=127.0.0.1 DNS_PORT=53053 DNS_NAMESPACE=micro DNS_SUFFIX=svc.cluster.local AUDITSERVICE_SERVICE_HOST=127.0.0.1 AUDITSERVICE_SERVICE_PORT=8081 AUDITSERVICE_PORT=tcp://127.0.0.1:8081 AUDITSERVICE_PORT_8081_TCP=tcp://127.0.0.1:8081 AUDITSERVICE_PORT_8081_TCP_PROTO=tcp ...