Skip to content

Instantly share code, notes, and snippets.

@matzew
Last active October 21, 2018 17:39
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 matzew/a5efcaa60eedeb910711becaa1534e01 to your computer and use it in GitHub Desktop.
Save matzew/a5efcaa60eedeb910711becaa1534e01 to your computer and use it in GitHub Desktop.

Running Strimzi on Kubernetes

Starting Minikube 1.11+ (1.11.3 / 1.12.1)

minikube start --memory=8192 --cpus=4 \
  --kubernetes-version=v1.12.1 \
  --vm-driver=kvm2 \
  --bootstrapper=kubeadm \
  --extra-config=apiserver.enable-admission-plugins="LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook"

Deploy Strimzi

Kafka namespace

kubectl create namespace kafka 

Apply the Strimzi install files (e.g. Roles, Bindings, CRDs)

curl -L https://gist.githubusercontent.com/matzew/3f373f9de6696f08f989814065d77fd6/raw/8a89c7e91d91106b65390a83538e6141396b9c59/Strimzi_070_install.yaml \
  | sed 's/namespace: .*/namespace: kafka/' \
  | kubectl -n kafka apply -f -

Wait for the Operator to be ready (not required, but nice to show)

sleep 5; while echo && kubectl get pods -n kafka | grep -v -E "(Running|Completed|STATUS)"; do sleep 5; done

Apply the Kafka Cluster CR file

kubectl -n kafka apply -f https://raw.githubusercontent.com/knative/eventing/master/config/buses/kafka/strimzi/kafka-persistent.yaml 

Dashboard UI

minikube dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment