Starters
入门指南是您可以在您的应用程序中包含的便利的依赖项描述符。包含一个入门指南以获取针对功能集的依赖项和 Spring Boot 自动配置。以 spring-cloud-starter-kubernetes-fabric8
开头的入门指南使用 Fabric8 Kubernetes Java Client 提供实现。以 spring-cloud-starter-kubernetes-client
开头的入门指南使用 Kubernetes Java Client 提供实现。
Starters are convenient dependency descriptors you can include in your
application. Include a starter to get the dependencies and Spring Boot
auto-configuration for a feature set. Starters that begin with spring-cloud-starter-kubernetes-fabric8
provide implementations using the Fabric8 Kubernetes Java Client.
Starters that begin with
spring-cloud-starter-kubernetes-client
provide implementations using the Kubernetes Java Client.
你无法组合 Fabric8 和 Kubernetes Java 客户端的启动器。你必须选择一个要使用的库,并仅为此库使用启动器。 |
You CANNOT combine starters from Fabric8 and Kubernetes Java Clients. You must pick one library to use and use the starters for that library only. |
Starter | Features |
---|---|
Fabric8 Dependency
Kubernetes Client Dependency
|
DiscoveryClient for Kubernetes implementation that resolves service names to Kubernetes Services. |
Fabric8 Dependency
Kubernetes Client Dependency
|
Load application properties from Kubernetes ConfigMaps and Secrets PropertySource. Reload application properties when a ConfigMap or Secret changes. |
Fabric8 Dependency
Kubernetes Client Dependency
|
All Spring Cloud Kubernetes features. |