Skip to content

Commit

Permalink
docs: eventing, camelk and advanced v0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
kameshsampath committed Mar 1, 2021
1 parent 796e5eb commit dd0fa3c
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 26 deletions.
3 changes: 3 additions & 0 deletions dev-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ asciidoc:
knative-eventing-version: v0.19.2
knative-sources-version: v0.19.0
kn-client-version: v0.19.1
camel-source-version: v0.19.0
kafka-source-version: v0.19.3
kamel-version: 1.3.1
kubernetes-cli: kubectl
release-version: master
page-pagination: true
Expand Down
9 changes: 3 additions & 6 deletions documentation/modules/advanced/pages/_attributes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
:github-repo: https://github.com/redhat-developer-demos/knative-tutorial/blob/{branch}
:advanced-module-github-repo-uri: https://github.com/redhat-developer-demos/knative-tutorial-advanced
:advanced-github-repo-uri: https://github.com/redhat-developer-demos/knative-tutorial-advanced
:advanced-github-repo: {advanced-module-github-repo-uri}/blob/{branch}
:kamel-version: 1.2.0
:advanced-github-re17po: {advanced-module-github-repo-uri}/blob/{branch}
:kamel-version: 1.3.1
:experimental:
:maven-version: 3.6.3+
:camel-source-version:
:camel-source-version: v0.17.7
:knative-eventing-version: v0.17.0
:kafka-source-version: v0.17.7
:strimzi-version: 0.20.0
:camelk-repo: advanced/camel-k
:eventing-repo: eventing
:observability-repo: advanced/observability
:minikube-nip-io: 192.168.64.13.nip.io
:knative-kafka-repo: https://github.com/knative-sandbox/eventing-kafka
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ watch kubectl -n {tutorial-namespace} get pods
[.console-input]
[source,bash,subs="+quotes,+attributes,+macros"]
----
kubectl -n {tutorial-namespace} get ksvc
kn -n {tutorial-namespace} service ls
----
#end::kgksvc[]
20 changes: 10 additions & 10 deletions documentation/modules/advanced/pages/eventing-with-kafka.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ Knative Eventing `KafkaSource` need to be used to have the Kafka messages to flo
[source,bash,subs="+quotes,attributes+,+macros"]
----
kubectl apply \
-f https://github.com/knative/eventing-contrib/\
releases/download/{kafka-source-version}/kafka-source.yaml
-f {knative-kafka-repo}/releases/download/{kafka-source-version}/source.yaml
----

The previous step deploys Knative KafkaSource in the `knative-sources` namespace as well as a CRD, ServiceAccount, ClusterRole, etc. Verify that knative-source namespace includes the `kafka-controller-manager-0` pod:
Expand All @@ -52,8 +51,8 @@ You should also deploy the Knative Kafka Channel that can be used to connect the
[#kn-eventing-deploy-kafka-channel]
[source,bash,subs="+quotes,attributes+,+macros"]
----
curl -L "https://github.com/knative/eventing-contrib/\
releases/download/{kafka-source-version}/kafka-channel.yaml" \
curl -L "{knative-kafka-repo}/\
releases/download/{kafka-source-version}/channel-consolidated.yaml" \
| sed 's/REPLACE_WITH_CLUSTER_URL/my-cluster-kafka-bootstrap.kafka:9092/' \
| kubectl apply --filename -
----
Expand Down Expand Up @@ -121,12 +120,13 @@ The command should show the following APIs in `sources.eventing.knative.dev` :
[.console-output]
[source,bash,subs="+quotes,attributes+,+macros"]
----
NAME SHORTNAMES APIGROUP NAMESPACED KIND
apiserversources sources.knative.dev true ApiServerSource
containersources sources.knative.dev true ContainerSource
*kafkasources sources.knative.dev true KafkaSource*
pingsources sources.knative.dev true PingSource
sinkbindings sources.knative.dev true SinkBinding
TYPE NAME DESCRIPTION
ApiServerSource apiserversources.sources.knative.dev Watch and send Kubernetes API events to addressable
CamelSource camelsources.sources.knative.dev
ContainerSource containersources.sources.knative.dev Generate events by Container image and send to addressable
*KafkaSource kafkasources.sources.knative.dev Route events from Apache Kafka Server to addressable*
PingSource pingsources.sources.knative.dev Send periodically ping events to addressable
SinkBinding sinkbindings.sources.knative.dev Binding for connecting a PodSpecable to addressable
----

include:
Expand Down
7 changes: 3 additions & 4 deletions documentation/modules/camelk/pages/_attributes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
:camelk-demos-github-repo-uri: https://github.com/redhat-developer-demos/knative-tutorial-camelk
:camelk-demos-github-repo: {camelk-demos-github-repo-uri}/blob/{branch}
:camelk-repo: advanced/camel-k
:kamel-version: 1.2.0
:kamel-version: 1.3.1
:experimental:
:maven-version: 3.6.0+
:camel-source-version:
:knative-version: v0.17.0
:camel-source-version: v0.17.7
:camel-source-version: v0.19.0
:eventing-camel-repo: https://github.com/knative-sandbox/eventing-camel
20 changes: 15 additions & 5 deletions documentation/modules/camelk/pages/camel-k-eventing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ To deploy CamelSource run the following command:
[source,bash,subs="+quotes,+attributes,+macros"]
----
kubectl apply \
-f "https://github.com/knative/eventing-contrib/releases/download/{camel-source-version}/camel.yaml"
-f "{eventing-camel-repo}/releases/download/{camel-source-version}/camel.yaml"
----

Once you deploy, thee following new pod showing up the `knative-sources` namespace, wait for the `camel-controller-manager-0` to be running:
Expand Down Expand Up @@ -77,10 +77,20 @@ In order for you to view the events drained from the CamelSource `timed-greeter`
[.console-input]
[#deploy-ce-event-display]
[source,bash,subs="+quotes,+attributes,+macros"]
----
kubectl apply \
-f https://github.com/knative/eventing-contrib/releases/download/{camel-source-version}/event-display.yaml
----
-----
cat <<EOF | kubectl create -n {tutorial-namespace} -f -
---
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: event-display
spec:
template:
spec:
containers:
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
EOF
-----

A successful event display should show the following pod in the `{tutorial-namespace}`:

Expand Down

0 comments on commit dd0fa3c

Please sign in to comment.