You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/09/16 15:58:45 UTC

[camel-kafka-connector] branch master updated: Updated opesnhift documentation to strimzi 0.19.0 and compatible with openshift version >= 4.x

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git


The following commit(s) were added to refs/heads/master by this push:
     new 3917f56  Updated opesnhift documentation to strimzi 0.19.0 and compatible with openshift version >= 4.x
3917f56 is described below

commit 3917f5653120ab131dd3bef075aed44efcf3ba0e
Author: Andrea Tarocchi <an...@gmail.com>
AuthorDate: Wed Sep 16 17:51:02 2020 +0200

    Updated opesnhift documentation to strimzi 0.19.0 and compatible with openshift version >= 4.x
---
 .../ROOT/pages/try-it-out-on-openshift-with-strimzi.adoc   | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/docs/modules/ROOT/pages/try-it-out-on-openshift-with-strimzi.adoc b/docs/modules/ROOT/pages/try-it-out-on-openshift-with-strimzi.adoc
index e3d3048..f304729 100644
--- a/docs/modules/ROOT/pages/try-it-out-on-openshift-with-strimzi.adoc
+++ b/docs/modules/ROOT/pages/try-it-out-on-openshift-with-strimzi.adoc
@@ -1,4 +1,4 @@
-:strimzi_version: 0.18.0
+:strimzi_version: 0.19.0
 
 [[Tryitoutcloud-Tryitoutcloud]]
 = Try it out on OpenShift with Strimzi
@@ -46,10 +46,10 @@ Next we will deploy a Kafka broker cluster and a Kafka Connect cluster and then
 [source,bash,options="nowrap",subs="attributes"]
 ----
 # Deploy a single node Kafka broker
-oc apply -f https://github.com/strimzi/strimzi-kafka-operator/raw/{strimzi_version}/examples/kafka/kafka-persistent-single.yaml
+oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/{strimzi_version}/examples/kafka/kafka-persistent-single.yaml
 
 # Deploy a single instance of Kafka Connect with no plug-in installed
-oc apply -f https://github.com/strimzi/strimzi-kafka-operator/raw/{strimzi_version}/examples/kafka-connect/kafka-connect-s2i-single-node-kafka.yaml
+oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/{strimzi_version}/examples/connect/kafka-connect-s2i-single-node-kafka.yaml
 ----
 
 Optionally enable the possibility to instantiate Kafka Connectors through specific custom resource:
@@ -80,7 +80,7 @@ To check the available connector plugins, you can run the following command:
 
 [source,bash,options="nowrap"]
 ----
-oc exec -i -c kafka my-cluster-kafka-0 -- curl -s http://my-connect-cluster-connect-api:8083/connector-plugins
+oc exec -i `kubectl get pods --field-selector status.phase=Running -l strimzi.io/name=my-connect-cluster-connect -o=jsonpath='{.items[0].metadata.name}'` -- curl -s http://my-connect-cluster-connect-api:8083/connector-plugins
 ----
 
 You should see something like this:
@@ -97,7 +97,7 @@ Now we can create some instance of a connector plugin - got example of the S3 co
 
 [source,bash,options="nowrap"]
 ----
-oc exec -i -c kafka my-cluster-kafka-0 -- curl -X POST \
+oc exec -i `kubectl get pods --field-selector status.phase=Running -l strimzi.io/name=my-connect-cluster-connect -o=jsonpath='{.items[0].metadata.name}'` -- curl -X POST \
     -H "Accept:application/json" \
     -H "Content-Type:application/json" \
     http://my-connect-cluster-connect-api:8083/connectors -d @- <<'EOF'
@@ -152,7 +152,7 @@ You can check the status of the connector using
 
 [source,bash,options="nowrap"]
 ----
-oc exec -i -c kafka my-cluster-kafka-0 -- curl -s http://my-connect-cluster-connect-api:8083/connectors/s3-connector/status
+oc exec -i `kubectl get pods --field-selector status.phase=Running -l strimzi.io/name=my-connect-cluster-connect -o=jsonpath='{.items[0].metadata.name}'` -- curl -s http://my-connect-cluster-connect-api:8083/connectors/s3-connector/status
 ----
 
 [[Tryitoutcloud-CheckMessages]]
@@ -162,5 +162,5 @@ You can also run the Kafka console consumer to see the messages received from th
 
 [source,bash,options="nowrap"]
 ----
-oc exec -i -c kafka my-cluster-kafka-0 -- bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic s3-topic --from-beginning
+oc exec -i `kubectl get pods --field-selector status.phase=Running -l strimzi.io/name=my-connect-cluster-connect -o=jsonpath='{.items[0].metadata.name}'` -- bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic s3-topic --from-beginning
 ----