diff options
author | Staffan Olsson <staffan@repos.se> | 2016-09-05 08:57:20 +0200 |
---|---|---|
committer | Staffan Olsson <staffan@repos.se> | 2016-09-05 09:02:21 +0200 |
commit | 03454f1b6e9465d39d1b8cd30c540716364c5578 (patch) | |
tree | 86122f4e90f40d5520959528536cafb39a44a3ab /README.md | |
parent | 99f487d1e81404ba328c9330072e205bbc0cb176 (diff) | |
download | kubernetes-kafka-03454f1b6e9465d39d1b8cd30c540716364c5578.tar.gz kubernetes-kafka-03454f1b6e9465d39d1b8cd30c540716364c5578.tar.bz2 kubernetes-kafka-03454f1b6e9465d39d1b8cd30c540716364c5578.zip |
Describes setup and some manual testing
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..2991e1a --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ + +# Kafka as Kubernetes PetSet + +Example of three Kafka brokers depending on three Zookeeper instances. + +## Set up volume claims + +This step can be skipped in clusters that support automatic volume provisioning, such as GKE. + +You need this step in Minikube. + +``` +./zookeeper/bootstrap/pv.sh +kubectl create -f ./zookeeper/bootstrap/pvc.yml +``` + +``` +./bootstrap/pv.sh +kubectl create -f ./bootstrap/pvc.yml +# check that claims are bound +kubectl get pvc +``` + +The volume size in the example is very small. The numbers don't really matter as long as they match. Minimal size on GKE is 1 GB. + +## Set up Zookeeper + +This module contains a copy of `pets/zookeeper/` from https://github.com/kubernetes/contrib. + +See the `./zookeeper` folder and follow the README there. + +## Start Kafka + +``` +kubectl create -f ./ +``` + +## Testing manually + +See `./test/test.sh`. |