Support query service instance registered in the registry via emctl
zhao-kun opened this issue · 0 comments
zhao-kun commented
emctl should provide subcommand to query service instance, the output looks like:
SERVICE TENANT INSTANCE CANARY STATUS
-------------------------------------------------------------------------------------------------------------
vets-service spring-petclinic vets-service-79b955b989-22b4q lv1 ON_LINE
vets-service spring-petclinic vets-service-79b955b989-42b4q ON_LINE
vets-service spring-petclinic vets-service-79b955b989-32b4g OUT_OF_SERVICE
When users query service instance, they can specify a (or many) condition(s) to filter result, conditions:
- service name, filter by services' name.
- tenant, filter by tenant name.
- canary, filter by canary version.
- status, filter by service instance status.