Skip to content

Commit

Permalink
Replaced the use of kubectl with oc command.
Browse files Browse the repository at this point in the history
  • Loading branch information
valdar authored and oscerd committed Sep 16, 2020
1 parent 3917f56 commit a1b8425
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -80,7 +80,7 @@ To check the available connector plugins, you can run the following command:

[source,bash,options="nowrap"]
----
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
oc exec -i `oc 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:
Expand All @@ -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 `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 \
oc exec -i `oc 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'
Expand Down Expand Up @@ -152,7 +152,7 @@ You can check the status of the connector using

[source,bash,options="nowrap"]
----
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
oc exec -i `oc 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]]
Expand All @@ -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 `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
oc exec -i `oc 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
----

0 comments on commit a1b8425

Please sign in to comment.