diff --git a/docs/eventing/samples/kafka/source/README.md b/docs/eventing/samples/kafka/source/README.md index 4cbf34e52d8..f33ce46ef36 100644 --- a/docs/eventing/samples/kafka/source/README.md +++ b/docs/eventing/samples/kafka/source/README.md @@ -63,7 +63,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over 2. Deploy the `KafkaTopic` ```shell - $ kubectl apply -f kafka/source/samples/strimzi-topic.yaml + $ kubectl apply -f strimzi-topic.yaml kafkatopic.kafka.strimzi.io/knative-demo-topic created ``` @@ -77,7 +77,14 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over ### Create the Event Display service -1. Build the Event Display Service (`even-display.yaml`) +1. Download a copy of the code: + + ```shell + git clone -b "{{< branch >}}" https://github.com/knative/docs knative-docs + cd knative-docs/docs/eventing/samples/kafka/source + ``` + +2. Build the Event Display Service (`event-display.yaml`) ```yaml apiVersion: serving.knative.dev/v1 @@ -97,7 +104,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over 1. Deploy the Event Display Service ``` - $ kubectl apply --filename source/samples/event-display.yaml + $ kubectl apply --filename event-display.yaml ... service.serving.knative.dev/event-display created ``` @@ -133,7 +140,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over 1. Deploy the event source. ``` - $ kubectl apply -f kafka/source/samples/event-source.yaml + $ kubectl apply -f event-source.yaml ... kafkasource.sources.eventing.knative.dev/kafka-source created ``` @@ -218,7 +225,7 @@ You must ensure that you meet the [prerequisites listed in the Apache Kafka over 4. (Optional) Remove the Apache Kafka Topic ```shell - $ kubectl delete -f kafka/source/samples/kafka-topic.yaml + $ kubectl delete -f kafka-topic.yaml kafkatopic.kafka.strimzi.io "knative-demo-topic" deleted ```