9

在Kubernetes中部署SpringBoot的生产注意事项 - odedia

 1 year ago
source link: https://www.jdon.com/62898
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

在Kubernetes中部署SpringBoot的生产注意事项 - odedia


重点介绍围绕在 Kubernetes 上运行 Spring(以及更广泛的 Java)应用程序所形成的一些学习和最佳实践。本文档并非完全基于第一手经验,而是我在社区中以及与客户合作时确定的结论和最佳实践的集合。

为了在 Kubernetes 中运行 Spring Boot 应用程序,您所要做的就是快速记下一个 Dockerfile 并完成它。

从来没有那么容易。

您可能会考虑使用Tanzu Application Platform等开发人员平台将其中一些基础架构决策卸载到平台,但即使使用 PaaS,也需要做出架构和拓扑决策。此外,如果你建造它 - 你拥有它。知道自己拥有什么可能是个好主意。

构建和运行
在 Kubernetes 中运行生产就绪的 Spring 应用程序有两个独立但同样重要的方面:

  • 构建 OCI 镜像(又名“Docker”镜像)
  • 在 Kubernetes 上运行 OCI 镜像

每一步都有自己的陷阱和错综复杂的地方。让我们详细回顾一下这些。

....
详细点击标题


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK