Commit cb05334
committed
Use a more flexible port to pool mapping
Previously loadbalancer pools were named as a combination of the
service port protocol and outward bound port:
- `service.spec.ports[].protocol`
- `service.spec.ports[].port`
Since a name mis-match causes a pool to be recreated - an operation that
takes around 30-45 seconds - a change in the port number caused the pool
and its members to be recreated.
Since Kubernetes has the option to set a unique name for each service port,
we can offer an approach that allows to change the port, without pool
recreation in some cases:
- If a service has only one port with no name and the port changes.
- If a service uses names but keeps the names stable when changing ports.
In such cases, only the listener has to be re-created, which can be done
in 10-15 seconds. There's still a slight downtime that has to be expected,
but it is much shorter.
When the name changes, the pool still has to be recreated, which will be
a bit unexpected, but for deployments that would like to add/remove/change
a port with minimal downtime, there's now a way.1 parent 6832791 commit cb05334
File tree
3 files changed
+21
-8
lines changed- examples
- pkg/cloudscale_ccm
3 files changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
957 | 960 | | |
958 | 961 | | |
959 | | - | |
960 | | - | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
961 | 971 | | |
962 | 972 | | |
963 | 973 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| 136 | + | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| |||
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
146 | | - | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| |||
0 commit comments