As a cluster-admin
user, with a correctly running Minishift, perform the following steps:
#!/usr/bin/env bash
# Turn colors in this script off by setting the NO_COLOR variable in your
# environment to any value:
#
# $ NO_COLOR=1 test.sh
NO_COLOR=${NO_COLOR:-""}
if [ -z "$NO_COLOR" ]; then
header=$'\e[1;33m'
reset=$'\e[0m'
else
header=''
reset=''
fi
function header_text {
echo "$header$*$reset"
}
header_text "Starting Strimzi on OpenShift!"
oc project myproject
header_text "Setting up Strimzi for Openshift"
wget https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.7.0/strimzi-0.7.0.tar.gz
tar xfvz strimzi-0.7.0.tar.gz
cd strimzi-0.7.0
oc apply -f examples/install/cluster-operator -n myproject
oc apply -f examples/templates/cluster-operator -n myproject
header_text "Waiting for Strimzi Cluster Operator to become ready"
sleep 5; while echo && oc get pods -n myproject | grep -v -E "(Running|Completed|STATUS)"; do sleep 5; done
oc apply -f examples/kafka/kafka-ephemeral.yaml
This gives you an Apache Kafka 2.0 cluster on Openshift/Minishift