环境要求
安装步骤
以YAML文件进行部署,参照官方文档:https://knative.dev/docs/install/yaml-install/eventing/install-eventing-with-yaml/#verifying-image-signatures
下载必要的CRD
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.12.1/eventing-crds.yaml
安装Eventing的核心组件
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.12.1/eventing-core.yaml
确认安装
kubectl get pods -n knative-eventing
部署一个channel layer,这里选择In-Memory(测试环境)
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.12.1/in-memory-channel.yaml
安装Broker Layer,这里选择MT-Channel-based
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.12.1/mt-channel-broker.yaml
可以自定义名称空间级别的使用的broker
如果使用MT-Channel-based的broker,可以配置要使用的channel