Publishing to your Kubernetes cluster
If you already have a Kubernetes cluster running, you can skip this step. The cluster must be 1.16+
eval $(minikube docker-env)
export KO_DOCKER_REPO=ko.local
Apply the CRD and configuration yaml
apiVersion: serving.knative.dev/v1
kind: Service
name: event-display
namespace: knative-samples
template:
spec:
containers:
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
---
apiVersion: samples.knative.dev/v1alpha1
kind: SampleSource
namespace: knative-samples
spec:
interval: "10s"
sink:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: event-display
Once reconciled, you can confirm the ksvc
is outputting valid cloudevents every to align with our specified interval.