天天看点

Spring Cloud & Kubernetes

  1. 将KubernetesClient注入到Spring Cloud应用中,用于服务发现,将一个Spring Cloud 应用,作为Kubernetes Service部署时,就是服务注册;使用K8s的服务注册发现能力代替了Spring Cloud Netflix的服务注册发现组件Eureka;
  2. 让Spring Cloud应用可以使用K8s集群中的对象,如ConfigMap,Secrets等
  3. Spring Cloud中其他组件的适配

    具体如下:

    spring-cloud-kubernetes项目提供了如下的能力

  4. DiscoveryClient for Kubernetes
  5. KubernetesClient autoconfiguration
  6. PropertySource
  7. ConfigMap PropertySource
  8. Secrets PropertySource
  9. PropertySource Reload
  10. Pod Health Indicator
  11. Transparency (its transparent whether the code runs in or outside of Kubernetes)
  12. Kubernetes Profile Autoconfiguration
  13. Ribbon discovery in Kubernetes
  14. Zipkin discovery in Kubernetes
  15. ConfigMap Archaius Bridge

Architecture