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

    1. eval $(minikube docker-env)
    2. 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.

    1. apiVersion: serving.knative.dev/v1
    2. kind: Service
    3. name: event-display
    4. spec:
    5. template:
    6. spec:
    7. containers:
    8. - image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
    9. ---
    10. apiVersion: samples.knative.dev/v1alpha1
    11. kind: SampleSource
    12. name: sample-source
    13. namespace: knative-samples
    14. spec:
    15. interval: "10s"
    16. sink:
    17. ref:
    18. apiVersion: serving.knative.dev/v1
    19. kind: Service

    Once reconciled, you can confirm the ksvc is outputting valid cloudevents every to align with our specified interval.

    1. % 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.