当前位置: 首页 > news >正文

Spring Cloud Kubernetes 2.0.0 M1(Milestone 1)是 Spring Cloud 官方为适配 Kubernetes 原生能力而发布的**首个 2.x 版本里程碑版

Spring Cloud Kubernetes 2.0.0 M1(Milestone 1)是 Spring Cloud 官方为适配 Kubernetes 原生能力而发布的首个 2.x 版本里程碑版本,于 2022 年初发布(具体为 2022年2月),标志着该项目从 Spring Cloud Commons 集成范式向完全基于 Spring Boot 3 和 Jakarta EE 9+(即jakarta.*命名空间)的现代化重构迈出关键一步。该版本的重要变化包括:

核心升级:

  • 基于Spring Boot 3.0.0-MxSpring Framework 6.0.0-Mx
  • 全面迁移到Jakarta EE 9+ API(如jakarta.annotation,jakarta.inject),弃用所有javax.*包;
  • 移除对旧版 Spring Cloud Commons 中ServiceRegistry/Registration的依赖,转而使用 Spring Boot 3 的ServiceInstanceRegistration抽象;

功能演进:

  • 重写KubernetesDiscoveryClient,支持多命名空间服务发现(通过spring.cloud.kubernetes.discovery.namespaces配置);
  • 增强 ConfigMap/Secret 的实时监听能力(基于 Informer 机制,降低轮询开销);
  • 初步支持 Spring Cloud LoadBalancer 与 Kubernetes Service 的原生集成(替代 Ribbon);
  • 引入@ConditionalOnKubernetes等新条件注解,提升环境感知能力;

⚠️注意:

  • 此为Milestone 版本(非生产就绪),不建议用于生产环境;
  • 与 Spring Cloud 2022.x(即 Kilburn)版本线对齐,不兼容 Spring Boot 2.x / Spring Cloud 2021.x 及更早版本
  • 后续正式版(2.0.0 GA)于 2022年10月随 Spring Cloud 2022.0.0(Kilburn)发布。
<!-- Maven 依赖示例(需匹配 Spring Boot 3.x) --><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-kubernetes-client</artifactId><version>2.0.0-M1</version></dependency>

Spring Cloud Kubernetes 2.0.0 M1
Spring Cloud Kubernetes provide Spring Cloud common interface implementations that consume Kubernetes native services. The main objective of the projects provided in this repository is to facilitate the integration of Spring Cloud and Spring Boot applications running inside Kubernetes.
Features

Kubernetes awareness DiscoveryClient implementation PropertySource objects configured via ConfigMaps Client side loadbalancing via Netflix Ribbon

Getting Started

The easiest way to get started is by including the Spring Cloud BOM and then adding spring-cloud-starter-kubernetes-all to your application’s classpath. If you don’t want to include all of the Spring Cloud Kubernetes features you can add individual starters for the features you would like. By default Spring Cloud Kubernetes will enable the kubernetes profile when it detects it is running inside a Kubernetes cluster. You can take advantage of this by creating a kubernetes-application configuration properties for anything specific to Kubernetes you might want to configure. Once the starter is on the classpath the application should behave as any other Spring Cloud application.

http://www.jsqmd.com/news/485163/

相关文章:

  • Hyperswarm与Hypercore生态:构建去中心化应用的完美组合
  • 基于DE-Transformer单变量时序预测 (单输入单输出)Matlab代码
  • P8638 [蓝桥杯 2016 省 A] 密码脱落【LCS】
  • 如何快速集成 Vue Google Autocomplete:打造智能地址搜索体验
  • 光伏气象站:为光伏电站的发电效率评估提供数据支持
  • 如何使用Buster进行高效电子邮件侦察:从入门到精通
  • Spring Cloud Netflix 2.2.2 是 Spring Cloud 的一个**已停止维护的旧版本**,对应 Spring Boot 2.2.x(如 2.2.6.RELEASE)
  • 终极前端面试宝典:Web面试题库开源项目完全指南
  • asp毕业设计——基于asp+access的网上课件管理系统设计与实现(毕业论文+程序源码)——课件管理系统
  • Spring Integration 5.3 RC1(Release Candidate 1)、5.2.6 和 5.1.10 是 Spring Integration 项目在 2020 年初发布的多个
  • Siri Ultra开发路线图:未来将新增哪些令人期待的LLM功能?
  • asp毕业设计——基于asp+access的网上拍卖系统设计与实现(毕业论文+程序源码)——网上拍卖系统
  • 如何使用Goque:Go语言持久化数据结构的终极指南
  • Spring Tools 4.6.1 是 Spring Tools Suite(STS)的继任者——Spring Tools for Eclipse(基于 Eclipse IDE)的一个维护版本
  • Social-Engineer Toolkit (SET) 终极指南:10大社会工程攻击向量深度解析
  • 如何快速上手Touca:面向团队的持续回归测试工具完整指南
  • 告别单调命令行!logo-ls让你的文件列表秒变可视化界面
  • asp毕业设计——基于asp+access的网上售房管理系统设计与实现(毕业论文+程序源码)——网上售房管理系统
  • ThreadLocal为什么能实现线程数据隔离
  • asp毕业设计——基于asp+access的网上体育用品商店设计与实现(毕业论文+程序源码)——网上体育用品商店
  • UEDumper常见问题解决:新手必看的10个故障排除技巧
  • 如何快速上手PSLab硬件项目:从设计到实践的完整指南
  • 如何使用1History:完整的个人浏览历史管理工具教程
  • Unity安卓环境配置踩坑:you are not using the recommended xxx 如何处理
  • Bootstrap-select CDN部署终极指南:快速优化网页加载速度的5个技巧
  • 52单片机的定时器/计数器2的功能
  • 如何在Mac上安装与使用Emacs Mac Port:完整指南
  • Tessera高级特性:如何利用数据转换实现动态仪表盘交互
  • 如何快速集成 Social Likes:为网站添加美观点赞按钮的完整指南
  • 如何快速上手rpg_trajectory_evaluation?5分钟完成安装与基础配置