8.3. 集群范围的事件系统配置
在 SonataFlowClusterPlatform 设置中,工作流会自动链接到关联的 SonataFlowPlatform CR 中指定的 Broker。这个链接内容遵循 Eventing 系统配置优先级规则。
为确保正确集成,您可以在 SonataFlowClusterPlatform CR 引用的 SonataFlowPlatform CR 中配置 Broker。
以下示例演示了如何配置 SonataFlowClusterPlatform CR 及其对 SonataFlowPlatform CR 的引用:
apiVersion: sonataflow.org/v1alpha08
kind: SonataFlowPlatform
metadata:
name: global-platform
namespace: global-namespace
spec:
eventing:
broker:
ref:
name: global-broker
namespace: global-namespace
apiVersion: eventing.knative.dev/v1
kind: Broker
---
apiVersion: sonataflow.org/v1alpha08
kind: SonataFlowClusterPlatform
metadata:
name: cluster-platform-example
spec:
platformRef:
name: global-platform
namespace: global-namespace
...
注意
SonataFlowClusterPlatform CR 可以引用已部署的任何 SonataFlowPlatform CR。