第 12 章 Red Hat OpenShift Container Platform 上的 Red Hat build of Kogito 探测


Red Hat OpenShift Container Platform 中的探测验证应用程序是否正常工作或需要重启。对于在红帽构建的 Quarkus 和 Spring Boot 上的红帽构建 Kogito 微服务构建,探测通过 HTTP 请求与应用程序交互,默认与扩展所公开的端点交互。因此,若要在 Red Hat OpenShift Container Platform 上运行 Red Hat build of Kogito 微服务,您必须导入扩展,以便为 存活度、就绪度和启动探测 提供应用程序可用性信息。

您可以为基于 Red Hat OpenShift Container Platform 上的 Quarkus 应用程序的 Kogito 服务添加健康检查扩展。

流程

在命令终端中,导航到项目的 pom.xml 文件,并为 quarkus-smallrye-health 扩展添加以下依赖项:

用于 Red Hat OpenShift Container Platform 上红帽构建的 Quarkus 应用程序的 SmallRye Health 依赖项

<dependencies>
  <dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-smallrye-health</artifactId>
  </dependency>
</dependencies>
Copy to Clipboard Toggle word wrap

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat