Skip to content

Commit f1fd968

Browse files
authored
feat(lb): add HC per port (#68) (#72)
* feat(lb): add HC per port (#68) Signed-off-by: Patrik Cyvoct <[email protected]> * doc: add doc about the HC per port (#69) Signed-off-by: Patrik Cyvoct <[email protected]>
1 parent 4ebddc5 commit f1fd968

File tree

3 files changed

+534
-118
lines changed

3 files changed

+534
-118
lines changed

docs/loadbalancer-annotations.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ NB: muste be set if `service.beta.kubernetes.io/scw-loadbalancer-sticky-sessions
4343

4444
### `service.beta.kubernetes.io/scw-loadbalancer-health-check-type`
4545
This is the type of health check used.
46-
The default value is `tcp` and the possible values are `tcp`, `http`, `mysql`, `pgsql`, `redis` or `ldap`.
46+
The default value is `tcp` and the possible values are `tcp`, `http`, `https`, `mysql`, `pgsql`, `redis` or `ldap`.
47+
It is possible to set the type per port, like `80:http;443,8443:https`.
4748
NB: depending on the type, some other annotations are required, see below.
4849

4950
### `service.beta.kubernetes.io/scw-loadbalancer-health-check-delay`
@@ -60,22 +61,27 @@ The default value is `10`.
6061

6162
### `service.beta.kubernetes.io/scw-loadbalancer-health-check-http-uri`
6263
This is the annotation to set the URI that is used by the `http` health check.
63-
NB: Required when setting service.beta.kubernetes.io/scw-loadbalancer-health-check-type to `http`.
64+
It is possible to set the uri per port, like `80:/;443,8443:/healthz`.
65+
NB: Required when setting service.beta.kubernetes.io/scw-loadbalancer-health-check-type to `http` or `https`.
6466

6567
### `service.beta.kubernetes.io/scw-loadbalancer-health-check-http-method`
6668
This is the annotation to set the HTTP method used by the `http` health check.
67-
NB: Required when setting service.beta.kubernetes.io/scw-loadbalancer-health-check-type to `http`.
69+
It is possible to set the method per port, like `80:GET;443,8443:POST`.
70+
NB: Required when setting service.beta.kubernetes.io/scw-loadbalancer-health-check-type to `http` or `https`.
6871

6972
### `service.beta.kubernetes.io/scw-loadbalancer-health-check-http-code`
7073
This is the annotation to set the HTTP code that the `http` health check will be matching against.
71-
NB: Required when setting service.beta.kubernetes.io/scw-loadbalancer-health-check-type to `http`.
74+
It is possible to set the code per port, like `80:404;443,8443:204`.
75+
NB: Required when setting service.beta.kubernetes.io/scw-loadbalancer-health-check-type to `http` or `https`.
7276

7377
### `service.beta.kubernetes.io/scw-loadbalancer-health-check-mysql-user`
7478
This is the annotation to set the MySQL user used to check the MySQL connection when using the `mysql` health check,
79+
It is possible to set the user per port, like `1234:root;3306,3307:mysql`.
7580
NB: Required when setting service.beta.kubernetes.io/scw-loadbalancer-health-check-type to `mysql`.
7681

7782
### `service.beta.kubernetes.io/scw-loadbalancer-health-check-pgsql-user`
7883
This is the annotation to set the PgSQL user used to check the PgSQL connection when using the `pgsql` health check.
84+
It is possible to set the user per port, like `1234:root;3306,3307:mysql`.
7985
NB: Required when setting service.beta.kubernetes.io/scw-loadbalancer-health-check-type to `pgsql`.
8086

8187
### `service.beta.kubernetes.io/scw-loadbalancer-proxy-protocol-v1`

0 commit comments

Comments
 (0)