First install the following programs:
- Start minikube
minikube start --memory 8192 --cpus 2
Then create a dns name for minikube.
sudo -- sh -c -e "echo '$(minikube ip) minikube' >> /etc/hosts"
- Install the Kubernetes operators using helm
helm/build-helm.sh
- Build Kubernetes resource files
./build-k8s.sh
- Build kafka resources.
kubectl apply -f build/kafka
Please wait after executing the command until all components are Ready. You can monitor them by running:
kubectl get pods -n kafka -w
To interact with the cluster you can source the interact.sh
script in your shell.
Then you have access to additional interaction commands.
source interact.sh
In that shell you can now use some fancy commands:
kafka_ui
: Gives you the url to the Kafka-UI
grafana
: Gives you the url to your Grafana Dashboards
start_load
: Starts the load generator
stop_load
: Stops the load generator