Skip to content

Commit

Permalink
feat(lb): support externally managed lb mode (#159)
Browse files Browse the repository at this point in the history
* feat(lb): skip some configuration for externally managed lbs
  • Loading branch information
Nox-404 committed Feb 6, 2024
1 parent 2ed5287 commit 6dd1fd9
Show file tree
Hide file tree
Showing 3 changed files with 1,055 additions and 866 deletions.
11 changes: 11 additions & 0 deletions docs/loadbalancer-annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,14 @@ The default value is 2.
### `service.beta.kubernetes.io/scw-loadbalancer-private`
This is the annotation to configure the LB to be private or public
The LB will be public if unset or false.

### `service.beta.kubernetes.io/scw-loadbalancer-externally-managed`
When set to `true`, this annotation makes the following changes in behavior:
* Won't create/delete the LB.
* Ignores the global configurations (such as size, private mode, IPs).
* Won't detach private networks attached to the LB.
* won't manage extra frontends and backends not starting with the service id.
* Will refuse to manage a LB with a name starting with the cluster id.

This annotation requires `service.beta.kubernetes.io/scw-loadbalancer-id` to be set to a valid existing LB.
> Please note that this annotation is experimental and may not be supported.
Loading

0 comments on commit 6dd1fd9

Please sign in to comment.