scaleway-cli icon indicating copy to clipboard operation
scaleway-cli copied to clipboard

Have a command to quickly add an instance to a load balancer

Open remyleone opened this issue 5 years ago • 4 comments

Description

As a user, I would like to register a given instance to a given load balancer.

scw lb backend register 11111111-1111-1111-1111-111111111111 port=80

And this would automatically gather the IP of the instance, add it to the backend with the right port.

How this functionality would be exposed

References

Version

Version 2.0.0-beta.4+dev BuildDate unknown GoVersion go1.14.5 GitBranch unknown GitCommit unknown GoArch amd64 GoOS darwin

remyleone avatar Jul 17 '20 12:07 remyleone

The idea is cool but:

  • Will this be much simpler than adding the IP?
  • What happens if an instance does not have public IP?
  • Does it add public or private IP?
  • This could be confusing as it could lead the user to think if the instance IP change the LB will be automatically updated.

jerome-quere avatar Jul 20 '20 14:07 jerome-quere

  • Let's suppose that the IP change for any reason, the ID of the instance remains the same. So the ID is more durable than the IP. Plus if tomorrow we add IPv6 we could have the import that takes care of both IPv4 and IPv6 at the same time.
  • We can add the private IP by doing so, we are sure that it always exists
  • I would say private
  • It is an importer, not a controller, if the IP changes a user just has to run the exact same command and remove the old backend.

remyleone avatar Jul 20 '20 15:07 remyleone

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 18 '20 15:10 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 17 '21 12:01 stale[bot]