Skip to content

Instantly share code, notes, and snippets.

@willb
Forked from matzew/strimzi-eventing.md
Created November 27, 2018 15:38
Show Gist options
  • Select an option

  • Save willb/ed6bd7945144ce49baa3f91a0fbf6f7b to your computer and use it in GitHub Desktop.

Select an option

Save willb/ed6bd7945144ce49baa3f91a0fbf6f7b to your computer and use it in GitHub Desktop.

Revisions

  1. @matzew matzew renamed this gist Nov 27, 2018. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion strimzi-eventing.sh → strimzi-eventing.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,15 @@
    ```
    ## temporary installing Strimzi
    oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.8.2/strimzi-cluster-operator-0.8.2.yaml
    # Simple Cluster with one ZK and one Kafka node
    oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/examples/kafka/kafka-persistent-single.yaml
    oc get pods -n myproject -w
    ```

    wait...

    ```
    ## Eventing-Kafka
    oc adm policy add-scc-to-user anyuid -z kafka-channel-dispatcher -n knative-eventing
    oc adm policy add-scc-to-user anyuid -z kafka-channel-controller -n knative-eventing
    @@ -15,4 +22,5 @@ curl -L https://storage.googleapis.com/knative-releases/eventing/latest/kafka-ch
    oc adm policy add-cluster-role-to-user cluster-admin -z kafka-channel-dispatcher -n knative-eventing
    oc adm policy add-cluster-role-to-user cluster-admin -z kafka-channel-controller -n knative-eventing
    oc get pods -n knative-eventing -w
    oc get pods -n knative-eventing -w
    ```
  2. @matzew matzew revised this gist Nov 26, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion strimzi-eventing.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ## temporary installing Strimzi
    oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.8.2/strimzi-cluster-operator-0.8.2.yaml
    # Simple Cluster with one ZK and one Kafka node
    oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/examples/kafka/kafka-persistent-single.yaml```
    oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/examples/kafka/kafka-persistent-single.yaml

    ## Eventing-Kafka
    oc adm policy add-scc-to-user anyuid -z kafka-channel-dispatcher -n knative-eventing
  3. @matzew matzew revised this gist Nov 26, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion strimzi-eventing.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ## temporary installing Strimzi
    oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.8.2/strimzi-cluster-operator-0.8.2.yaml
    # Simple Cluster with one ZK and one Kafka node
    https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/examples/kafka/kafka-persistent-single.yaml```
    oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/examples/kafka/kafka-persistent-single.yaml```
    ## Eventing-Kafka
    oc adm policy add-scc-to-user anyuid -z kafka-channel-dispatcher -n knative-eventing
  4. @matzew matzew created this gist Nov 26, 2018.
    18 changes: 18 additions & 0 deletions strimzi-eventing.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    ## temporary installing Strimzi
    oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.8.2/strimzi-cluster-operator-0.8.2.yaml
    # Simple Cluster with one ZK and one Kafka node
    https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/master/examples/kafka/kafka-persistent-single.yaml```
    ## Eventing-Kafka
    oc adm policy add-scc-to-user anyuid -z kafka-channel-dispatcher -n knative-eventing
    oc adm policy add-scc-to-user anyuid -z kafka-channel-controller -n knative-eventing
    ## Ref. the Strimzi URLs
    curl -L https://storage.googleapis.com/knative-releases/eventing/latest/kafka-channel.yaml \
    | sed 's/kafkabroker.kafka/my-cluster-kafka-bootstrap.myproject.svc.cluster.local/' \
    | oc apply -f -
    oc adm policy add-cluster-role-to-user cluster-admin -z kafka-channel-dispatcher -n knative-eventing
    oc adm policy add-cluster-role-to-user cluster-admin -z kafka-channel-controller -n knative-eventing
    oc get pods -n knative-eventing -w