如何在Spring Boot应用程序中删除Web服务器并继续通过健康检查部署到ECS中
我有一个 Spring Boot 服务,仅从 kafka 主题发送和接收消息, 我想删除网络服务器(tomcat),因为不需要它。 问题是服务当前部署在 ECS 上,端点 /actuator/health 用于检查服务的运行状况,这意味着如果我删除 Web 服务器,管道中的部署将不会成功,因为运行状况检查会失败,
我尝试将 ALB 设置为内部,但 Kafka 服务不在同一个 VPC 中,并且服务无法连接
是否有任何解决方案来隔离服务?
I have a spring boot service that send and receive messages only from a kafka topic,
I want to remove the web server (tomcat) since there is no need for it.
The problem is the service is currently deployed on ECS and the end point /actuator/health is used to check the health of the service, which means if I remove the web server the deployment in the pipeline won't be successful since the health checks will fail,
I tried making the ALB internal but the Kafka service is not in the same VPC and the service couldn’t connect
Is there any solutions to isolate the service ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论