Publishing to your Kubernetes cluster
If you already have a Kubernetes cluster running, you can skip this step. The cluster must be 1.15+
Setup to use the minikube docker instance and local registry
eval $(minikube docker-env)
export KO_DOCKER_REPO=ko.local
Once the sample-source-controller-manager
is running in the knative-samples
namespace, you can apply the example.yaml
to connect our sample-source
every 10s
directly to a ksvc
.
apiVersion: serving.knative.dev/v1
kind: Service
name: event-display
spec:
template:
spec:
containers:
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/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
Once reconciled, you can confirm the ksvc
is outputting valid cloudevents every to align with our specified interval.
% k logs -n knative-samples event-display-zrjgm-deployment-84f6bfdfc6-2jc67 user-container -f
Feedback
Glad to hear it! Please .
Sorry to hear that. Please tell us how we can improve.