You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jkube-kit/doc/src/main/asciidoc/inc/enricher/spring-boot-healthcheck/_jkube_healthcheck_spring_boot.adoc
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,18 @@ If the user has enabled the `management.health.probes.enabled` property this Enr
24
24
management.health.probes.enabled=true
25
25
----
26
26
27
-
The port number is read from the `management.port` option, and will use the default value of `8080`
28
-
The scheme will use HTTPS if `server.ssl.key-store` option is in use, and fallback to use `HTTP` otherwise.
27
+
The port number is read from the `management.port` (Spring Boot 1) or `management.server.port` (Spring Boot 2+) option, and will use the default value of `8080`.
28
+
29
+
The probe scheme (`http` or `https`) is determined as follows:
30
+
31
+
* For probes targeting the management port:
32
+
** If `management.server.ssl.enabled` (Spring Boot 2+) or `management.ssl.enabled` (Spring Boot 1) is explicitly set, this value determines whether HTTPS is used
33
+
** Otherwise, HTTPS is used if `management.server.ssl.key-store` (Spring Boot 2+) or `management.ssl.key-store` (Spring Boot 1) is configured
34
+
* For probes targeting the server port:
35
+
** If `server.ssl.enabled` is explicitly set, this value determines whether HTTPS is used
36
+
** Otherwise, HTTPS is used if `server.ssl.key-store` is configured
37
+
38
+
This allows you to disable SSL for health probes even when a keystore is configured by setting the appropriate `ssl.enabled` property to `false`.
29
39
30
40
The enricher will use the following settings by default:
Copy file name to clipboardExpand all lines: jkube-kit/doc/src/main/asciidoc/inc/generator/_spring_boot.adoc
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,17 @@ Beside the <<generator-options-common, common generator options>> and the <<gen
23
23
|===
24
24
25
25
The generator adds Kubernetes liveness and readiness probes pointing to either the management or server port as read from the `application.properties`.
26
-
If the `management.port` (for Spring Boot 1) or `management.server.port` (for Spring Boot 2) and `management.ssl.key-store` (for Spring Boot 1) or `management.server.ssl.key-store` (for Spring Boot 2) properties are set in `application.properties` otherwise or `server.ssl.key-store` property is set in `application.properties` then the probes are automatically set to use `https`.
26
+
27
+
The probe scheme (`http` or `https`) is determined as follows:
28
+
29
+
* For probes targeting the management port:
30
+
** If `management.server.ssl.enabled` (Spring Boot 2+) or `management.ssl.enabled` (Spring Boot 1) is explicitly set, this value determines whether HTTPS is used
31
+
** Otherwise, HTTPS is used if `management.server.ssl.key-store` (Spring Boot 2+) or `management.ssl.key-store` (Spring Boot 1) is configured
32
+
* For probes targeting the server port:
33
+
** If `server.ssl.enabled` is explicitly set, this value determines whether HTTPS is used
34
+
** Otherwise, HTTPS is used if `server.ssl.key-store` is configured
35
+
36
+
This allows you to disable SSL for health probes even when a keystore is configured by setting the appropriate `ssl.enabled` property to `false`.
27
37
28
38
ifeval::["{plugin-type}" == "maven"]
29
39
The generator works differently when called together with `{goal-prefix}:watch`.
0 commit comments