Publish an event source to your cluster
-
eval $(minikube docker-env)
export KO_DOCKER_REPO=ko.local
-
apiVersion: serving.knative.dev/v1
kind: Service
namespace: knative-samples
spec:
template:
spec:
containers:
- image: gcr.io/knative-releases/knative.dev/eventing/cmd/event_display
---
apiVersion: samples.knative.dev/v1alpha1
kind: SampleSource
name: sample-source
namespace: knative-samples
spec:
interval: "10s"
sink:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: event-display