Skip to content

Instantly share code, notes, and snippets.

@matzew
Last active January 14, 2019 10:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matzew/2e5019abb45623507d7947bad06e89ae to your computer and use it in GitHub Desktop.
Save matzew/2e5019abb45623507d7947bad06e89ae 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 apply -f https://gist.githubusercontent.com/matzew/c3d8494b77634667c52e9e2284a075e0/raw/2ce7c125446f51f127ecdbd0a9c11b26ea48d686/kafka-sample.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://github.com/knative/eventing/releases/download/v0.2.1/kafka.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