Experimental Spring Boot Application Reconcilers for Kubernetes
-
spring-boot
when image has
spring-boot
dependency- add label
apps.mononoke.local/framework
with valuespring-boot
- add annotation
boot.spring.io/version
with value{boot-version}
- add label
-
spring-boot-graceful-shutdown
when image has one of
spring-boot-starter-tomcat
,spring-boot-starter-jetty
,spring-boot-starter-reactor-netty
orspring-boot-starter-undertow
dependencies andspring-boot
version 2.3+- default pod termination grace period to 30 seconds (this is the k8s default)
- default boot property
server.shutdown.grace-period
to 80% of the pod's termination grace period
-
spring-web-port
when image has
spring-web
dependency- default boot property
server.port
to8080
- err if port is claimed by another container
- add container port for
server.port
, if not already set
- default boot property
-
spring-boot-actuator
when image has
spring-boot-actuator
dependency- default boot property
management.server.port
to matchserver.port
- default boot property
management.endpoints.web.base-path
to/actuator
- add annotation
boot.spring.io/actuator
with value{scheme}:https://:{port}{base-path}
- scheme is
http
by default,https
when boot propertymanagement.server.ssl.enabled
istrue
- scheme is
- default boot property
-
spring-boot-actuator-probes
when image has
spring-boot-actuator
dependency version 2.3+- if boot property
management.health.probes.enabled
is disabled, skip remainder of opinion - default liveness probe timings to initial delay of 30 seconds (only set if no liveness probe is defined)
- default liveness probe handler to HTTP GET
- path is
{boot:management.endpoints.web.base-path}/health/liveness
- port is the
management.server.port
boot property - scheme
http
by default,https
when boot propertymanagement.server.ssl.enabled
is true
- path is
- default readiness probe handler to HTTP GET
- path is
{boot:management.endpoints.web.base-path}/health/readiness
- port is the
management.server.port
boot property - scheme
http
by default,https
when boot pr
- path is
- if boot property