Skip to content

Commit

Permalink
feat(lb): add servers to backend via id (#2679)
Browse files Browse the repository at this point in the history
  • Loading branch information
yfodil committed Dec 16, 2022
1 parent ce50296 commit 7a35753
Show file tree
Hide file tree
Showing 16 changed files with 16,011 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ USAGE:
scw lb backend add-servers <backend-id ...> [arg=value ...]

ARGS:
backend-id Backend ID
server-ip.{index} Set all IPs to add on your backend
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1)
backend-id Backend ID
[instance-server-id.{index}] UIID of the instance server.
[use-instance-server-public-ip] Use public IP address of the instance instead of the private one
[baremetal-server-id.{index}] UIID of the baremetal server.
server-ip.{index} Set all IPs to add on your backend
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1)

FLAGS:
-h, --help help for add-servers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ ARGS:
[health-check.check-delay]
[health-check.check-send-proxy] It defines whether the healthcheck should be done considering the proxy protocol
lb-id Load balancer ID
[instance-server-id.{index}] UIID of the instance server.
[use-instance-server-public-ip] Use public IP address of the instance instead of the private one
[baremetal-server-id.{index}] UIID of the baremetal server.
server-ip.{index} Backend server IP addresses list (IPv4 or IPv6)
[timeout-server] Maximum server connection inactivity time
[timeout-connect] Maximum initical server connection establishment time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ USAGE:
scw lb backend remove-servers <backend-id ...> [arg=value ...]

ARGS:
backend-id Backend ID
server-ip.{index} Set all IPs to remove of your backend
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1)
backend-id Backend ID
[instance-server-id.{index}] UIID of the instance server.
[use-instance-server-public-ip] Use public IP address of the instance instead of the private one
[baremetal-server-id.{index}] UIID of the baremetal server.
server-ip.{index} Set all IPs to remove of your backend
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1)

FLAGS:
-h, --help help for remove-servers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ USAGE:
scw lb backend set-servers <backend-id ...> [arg=value ...]

ARGS:
backend-id Backend ID
server-ip.{index} Set all IPs to add on your backend and remove all other
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1)
backend-id Backend ID
[instance-server-id.{index}] UIID of the instance server.
[use-instance-server-public-ip] Use public IP address of the instance instead of the private one
[baremetal-server-id.{index}] UIID of the baremetal server.
server-ip.{index} Set all IPs to add on your backend and remove all other
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1)

FLAGS:
-h, --help help for set-servers
Expand Down
12 changes: 12 additions & 0 deletions docs/commands/lb.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ scw lb backend add-servers <backend-id ...> [arg=value ...]
| Name | | Description |
|------|---|-------------|
| backend-id | Required | Backend ID |
| instance-server-id.{index} | | UIID of the instance server. |
| use-instance-server-public-ip | | Use public IP address of the instance instead of the private one |
| baremetal-server-id.{index} | | UIID of the baremetal server. |
| server-ip.{index} | Required | Set all IPs to add on your backend |
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |

Expand Down Expand Up @@ -262,6 +265,9 @@ scw lb backend create [arg=value ...]
| health-check.check-delay | | |
| health-check.check-send-proxy | | It defines whether the healthcheck should be done considering the proxy protocol |
| lb-id | Required | Load balancer ID |
| instance-server-id.{index} | | UIID of the instance server. |
| use-instance-server-public-ip | | Use public IP address of the instance instead of the private one |
| baremetal-server-id.{index} | | UIID of the baremetal server. |
| server-ip.{index} | Required | Backend server IP addresses list (IPv4 or IPv6) |
| ~~send-proxy-v2~~ | Deprecated | Deprecated in favor of proxy_protocol field ! |
| timeout-server | | Maximum server connection inactivity time |
Expand Down Expand Up @@ -354,6 +360,9 @@ scw lb backend remove-servers <backend-id ...> [arg=value ...]
| Name | | Description |
|------|---|-------------|
| backend-id | Required | Backend ID |
| instance-server-id.{index} | | UIID of the instance server. |
| use-instance-server-public-ip | | Use public IP address of the instance instead of the private one |
| baremetal-server-id.{index} | | UIID of the baremetal server. |
| server-ip.{index} | Required | Set all IPs to remove of your backend |
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |

Expand All @@ -375,6 +384,9 @@ scw lb backend set-servers <backend-id ...> [arg=value ...]
| Name | | Description |
|------|---|-------------|
| backend-id | Required | Backend ID |
| instance-server-id.{index} | | UIID of the instance server. |
| use-instance-server-public-ip | | Use public IP address of the instance instead of the private one |
| baremetal-server-id.{index} | | UIID of the baremetal server. |
| server-ip.{index} | Required | Set all IPs to add on your backend and remove all other |
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |

Expand Down

0 comments on commit 7a35753

Please sign in to comment.