Skip to content

Instantly share code, notes, and snippets.

@kwk
Forked from corinnekrych/strimzi_on_minishift.md
Created January 14, 2019 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwk/0e879061f5ec2b8b4b57e3008e4cd55f to your computer and use it in GitHub Desktop.
Save kwk/0e879061f5ec2b8b4b57e3008e4cd55f to your computer and use it in GitHub Desktop.

Install Strimzi on Minishift

  • start minishift with a profile named kafka

on macOS

minishift --profile kafka start --vm-driver=xhyve --memory=7000 --cpus=4 --disk-size=50g

on linux

minishift --profile kafka start --memory=7000 --cpus=4 --disk-size=50g
  • login as developer
oc login MINISHIFT_URL 

developer / developer

  • grant admin right
oc adm policy  --as system:admin add-cluster-role-to-user cluster-admin developer
oc apply -f https://raw.githubusercontent.com/xcoulon/fabric8-minishift/master/developer-user.yml
oc adm policy  --as system:admin add-cluster-role-to-user cluster-admin devtools-sa 
oc apply -f https://raw.githubusercontent.com/xcoulon/fabric8-minishift/master/devtools-sa-user.yml
  • create myproject
oc new-project myproject
  • apply strimzi CRDs + ClusterRoleBindings
oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.8.2/strimzi-cluster-operator-0.8.2.yaml -n myproject

NOTE: in the yml the project name is myproject

  • CR to test it
oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/0.8.2/examples/kafka/kafka-persistent.yaml -n myproject

then test every deployed properly:

oc get pods -n myproject   
NAME                                          READY     STATUS    RESTARTS   AGE
my-cluster-entity-operator-665f5d84c6-tztrt   3/3       Running   0          19s
my-cluster-kafka-0                            2/2       Running   0          50s
my-cluster-kafka-1                            2/2       Running   0          50s
my-cluster-kafka-2                            2/2       Running   0          50s
my-cluster-zookeeper-0                        2/2       Running   0          1m
my-cluster-zookeeper-1                        2/2       Running   0          1m
my-cluster-zookeeper-2                        2/2       Running   0          1m
strimzi-cluster-operator-9b6fc698d-8v8l4      1/1       Running   0          2m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment