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