143. Examples

Spring Cloud Kubernetes 尝试使您的应用程序在 Spring Cloud 接口之后使用 Kubernetes Native Services 透明化。

在您的应用程序中,您需要将 spring-cloud-kubernetes-discovery 依赖项添加到您的 Classpath 中,并删除任何其他包含 DiscoveryClient 实现的依赖项(即 Eureka Discovery Client)。这同样适用于 PropertySourceLocator,在这里您需要向 Classpath 中添加“ spring-cloud-kubernetes-config”,并删除任何其他包含“ PropertySourceLocator”实现的依赖项(即 Config Server Client)。

以下项目重点介绍了这些依赖项的用法,并演示了如何从任何 Spring Boot 应用程序中使用这些库。

使用这些项目的示例列表: