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
  • Save willb/ed6bd7945144ce49baa3f91a0fbf6f7b to your computer and use it in GitHub Desktop.
Save willb/ed6bd7945144ce49baa3f91a0fbf6f7b to your computer and use it in GitHub Desktop.
## 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

## 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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment