Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I check droplets in a load-balancer are registered and in healthy state using the CLI? #1335

Open
ktalebian opened this issue Dec 30, 2022 · 1 comment
Assignees
Labels
do-api Depends on additional features for the DigitalOcean API suggestion

Comments

@ktalebian
Copy link

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 <id> -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.

@danaelhe
Copy link
Member

danaelhe commented Jan 4, 2023

Hi @ktalebian
Thanks for the write up! This is currently not supported in doctl. I've talked to our internal Load Balance team and they've given us some direction on implementing it into doctl. I've created a ticket for the work and added it to our backlog and we will get to it as soon as we can. In the meantime, you could look into creating an alert policy to automate your process a bit. You can read about alert policies either via our API doc here or via doctl: doctl monitoring alert create [flags]

@ChiefMateStarbuck ChiefMateStarbuck added the do-api Depends on additional features for the DigitalOcean API label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-api Depends on additional features for the DigitalOcean API suggestion
Projects
None yet
Development

No branches or pull requests

3 participants