fix(projection-writer): add spring-boot-starter-web for actuator HTTP server

Without spring-boot-starter-web, Spring Boot не запускает Tomcat, и
actuator endpoints (/health, /metrics) недоступны. Probes в чарте не
могут пройти. Добавляем web starter — Tomcat поднимется на server.port
(8082), actuator/health/{liveness,readiness} ответят, probes работают.
This commit is contained in:
Александр Зимин
2026-05-03 23:13:47 +03:00
parent 5ed360a979
commit 519c397a29
2 changed files with 12 additions and 8 deletions
+6
View File
@@ -24,6 +24,12 @@
<artifactId>ordinis-domain</artifactId> <artifactId>ordinis-domain</artifactId>
</dependency> </dependency>
<!-- web нужен только под actuator endpoint (probes/metrics/prometheus);
бизнес-API в этом сервисе нет — он Kafka consumer + Redis writer. -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
@@ -3,16 +3,14 @@ spring:
name: ordinis-projection-writer name: ordinis-projection-writer
profiles: profiles:
active: ${SPRING_PROFILES_ACTIVE:dev} active: ${SPRING_PROFILES_ACTIVE:dev}
# projection-writer — не web app (Kafka consumer + Redis writer). Web-сервер
# нужен только под актуатор (probes/metrics/prometheus); живёт на отдельном
# management-порту.
main:
web-application-type: none
management: # projection-writer — Kafka consumer + Redis writer; полноценного API нет, но
# Tomcat нужен под actuator (probes/metrics/prometheus). server.port = 8082.
server: server:
port: 8082 port: 8082
address: 0.0.0.0 shutdown: graceful
management:
endpoints: endpoints:
web: web:
exposure: exposure: