天天看點

解讀 Knative Eventing v0.14.0 版本特性

前言

針對 Knative Eventing v0.14.0 版本對這些新功能特性進行解讀,讓你快速對 v0.14.0 版本有所了解。

新特性

新增 APIServerSource 和 ContainerSource

ContainerSource 重新回歸到 eventing 中,另外新增了 APIServerSource

新增 namespace controller

新增 namespace controller,支援在每個 namespace 中建立 broker

Broker 支援多租

Knative提供了使用channel 進行事件路由的多租戶Broker實作。可以選擇 Channel 進行部署,例如InMemoryChannel(開發測試場景),Kafka,Nats等。多租Broker建立示例:

apiVersion: eventing.knative.dev/v1beta1
kind: Broker
metadata:
  name: my-other-broker
  namespace: my-namespace
  annotations:
    eventing.knative.dev/broker.class: MTChannelBasedBroker
spec:
  config:
    apiVersion: v1
    kind: ConfigMap
    name: my-kafka-channel
    namespace: my-namespace           

其它關鍵資訊

  • 更新 sdk-go 到 v2.0.0-RC1
  • 重命名 Trigger condition Subscribed 為 SubscriptionReady
  • 使用 In-Memory Channel v1beta1 API 作為預設 channel.
  • 更新 ContainerSources 到最新的 v1alpha2 版本,并且删除原有的 CRD: containersources.sources.eventing.knative.dev。
  • 以下資源在新版本中被移除掉: CronJobSource/sources.eventing.knative.dev,

    ApiServerSource/sources.eventing.knative.dev, SinkBinding/sources.eventing.knative.dev,

ContainerSource/sources.eventing.knative.dev。

總結

本次 Knative Eventing v0.14.0 版本開始支援 Broker 多租的實作,滿足了使用者對于事件處理多租場景的支援。歡迎對 Knative 有興趣的一起交流。

歡迎加入 Knative 交流群

解讀 Knative Eventing v0.14.0 版本特性

繼續閱讀