发布日期: 2025-03-31
版本号: v3.4.0-rc1

Traefik v3.3到v3.4版本更新主要包含多项功能增强和优化。在ACME模块新增了配置文件和邮箱选项,Docker/ECS/Swarm等服务支持通过标签配置服务器URL。Kubernetes相关功能改进了CEL验证规则,为Gateway API添加TLSRoute优先级设置,并支持ClusterIP和NodePort类型的服务状态。中间件方面新增了保留请求方法、重写状态码、Redis限速器等功能,服务负载均衡增加了p2c策略。TLS支持通过ConfigMap添加根CA并禁用会话票据,UDP路由支持systemd套接字激活。WebUI新增自动主题选项,同时废弃了部分实验性功能。文档方面移除了默认规则语法选项。此外还进行了多次v3.3分支到主分支的合并工作。

更新内容 (中文)

重要提示: 请阅读迁移指南

功能增强:

  • [acme] 新增acme.profile和acme.emailAddresses选项(#11597 by ldez
  • [docker,ecs,docker/swarm,consulcatalog,nomad] 允许通过标签提供程序配置服务器URL(#11374 by yelvert
  • [k8s/crd,k8s] 改进Ingress CRD资源的CEL验证(#11311 by mloiseleur
  • [k8s/gatewayapi] 在Gateway API TLSRoute中设置规则优先级(#11443 by augustozanellato
  • [k8s/ingress] 为ClusterIP和NodePort Service类型添加Ingress状态(#11100 by mlec1
  • [middleware,authentication] 在forwardAuth中添加保留请求方法的选项(#11473 by an09mous
  • [middleware] 支持在错误页面中间件中重写状态码(#11520 by sevensolutions
  • [middleware] 新增Redis速率限制器(#10211 by longquan0104
  • [service] 为服务器负载均衡器添加p2c负载均衡策略(#11547 by rtribotte
  • [sticky-session] 支持粘性会话Cookie的域名配置(#11556 by jleal52
  • [tls,k8s/crd,service] 允许通过ConfigMap添加根CA(#11475 by Nelwhix
  • [tls] 新增支持禁用会话票据(#11609 by avdhoot
  • [udp] 支持在systemd套接字激活中实现UDP路由(#11022 by tsiid
  • [webui] 新增WebUI自动主题选项并设为默认(#11455 by zizzfizzix
  • 将实验性的maps和slices替换为标准库实现(#11350 by Juneezee

文档更新:

其他:

更新内容 (原始)

Important: Please read the migration guide.

Enhancements:

  • [acme] Add acme.profile and acme.emailAddresses options (#11597 by ldez)
  • [docker,ecs,docker/swarm,consulcatalog,nomad] Allow configuring server URLs with label providers (#11374 by yelvert)
  • [k8s/crd,k8s] Improve CEL validation on Ingress CRD resources (#11311 by mloiseleur)
  • [k8s/gatewayapi] Set rule priority in Gateway API TLSRoute (#11443 by augustozanellato)
  • [k8s/ingress] Add ingress status for ClusterIP and NodePort Service Type (#11100 by mlec1)
  • [middleware,authentication] Add option to preserve request method in forwardAuth (#11473 by an09mous)
  • [middleware] Support rewriting status codes in error page middleware (#11520 by sevensolutions)
  • [middleware] Add Redis rate limiter (#10211 by longquan0104)
  • [service] Add p2c load-balancing strategy for servers load-balancer (#11547 by rtribotte)
  • [sticky-session] Support domain configuration for sticky cookies (#11556 by jleal52)
  • [tls,k8s/crd,service] Allow root CA to be added through config maps (#11475 by Nelwhix)
  • [tls] Add support to disable session ticket (#11609 by avdhoot)
  • [udp] Add support for UDP routing in systemd socket activation (#11022 by tsiid)
  • [webui] Add auto webui theme option and default to it (#11455 by zizzfizzix)
  • Replace experimental maps and slices with stdlib (#11350 by Juneezee)

Documentation:

Misc:

下载链接