【发布时间】:2018-07-04 19:26:03
【问题描述】:
Consul 可用于 Springboot 应用程序中的服务发现。我是 Kubernetes 的新手,发现 Kubernetes 也有服务发现功能。我搜索了如何像 consul 一样使用此服务发现,但找不到。我发现的是,在 K8s 中可以使用 pod 的服务发现。任何人都可以让我知道如何将 Kubernates 的这种服务发现用于部署在 pod 中的 Springboot 应用程序进行内部通信,从而避免使用 consul。
【问题讨论】:
-
你找到方法了吗?
标签: spring-boot kubernetes service-discovery