解读 Knative Eventing v0.12.0 新特性

前言

针对 Knative Eventing v0.12.0 版本对这些新功能特性进行解读,让你快速对 v0.12.0 版本有所了解。

新特性

InMemoryChannel dispatcher Deployment

InMemoryChannel dispatcher Deployment 支持设置requests和limits , 以保证其性能。默认配置如下:

...
        resources:
          limits:
            cpu: 2200m
            memory: 2048Mi
          requests:
            cpu: 1000m
            memory: 256Mi

Broker

  • 支持设置 Image pull secret:针对私有镜像不能拉取问题,Broker 支持设置 Image pull secret。通过设置环境变量:BROKER_IMAGE_PULL_SECRET_NAME
  • 在broker.spec新增delivery属性设置,用于处理从filter/subscriber的错误信息

其它特性

  • 新增 sources.knative.dev API group,包括 ApiServerSource 和 SinkBinding.
  • 在ConfigMap 中添加 eventing.knative.dev/release 标签,用于标识release版本

其它关键信息

  • Broker's ingress channel 已经被删除掉,以减少事件处理延迟
  • Generated Client 从 pkg/client 移除到了 pkg/legacyclient,涉及到 ApiServerSource, CronJobSource, ContainerSource, 和 SinkBinding
  • Triggers 和 Subscriptions已经在spec中支持Destination。
  • 在 Subscription, Parallel 和 Sequence 中, Deprecated 字段属性不再支持
  • 需要升级 Parallel, Sequence 从 messaging.knative.dev API group 到 flows.knative.dev API group.
  • 当前最小 Kubernetes 版本支持: 1.15.

总结

本次 Knative Eventing v0.12.0 版本并没有涉及到很大改动,更多的聚焦在可用性方面。欢迎对 Knative 有兴趣的一起交流。

欢迎加入 Knative 交流群

image

猜你喜欢

转载自yq.aliyun.com/articles/747274