digitalocean / digitalocean/doctl
How do I check droplets in a load-balancer are registered and in healthy state using the CLI?
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 496
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
**What is the problem this feature would solve? Please describe.**
On the UI, when you add a droplet, you can check it status and it tells you if the box is healthy or not. However, I cannot figure how to find this information out via the CLI.
The command `doctl compute load-balancer get -o json` does not have any information about the droplets other than their ID of them.
I have a deploy script and I want to swap old boxes with the new boxes. When the new boxes are brought into the load-balancer, I need to wait until the health check registers, and the LB deems them healthy before I take old boxes out of the LB. At the moment, my deploy script pauses, and I manually check the UI, and when the new boxes are healthy, I prompt it to continue.
Contributor guide
Assessment
This issue has not been assessed yet.