Skip to content

Commit a8c8a39

Browse files
committed
Updates the readme
1 parent 9479e81 commit a8c8a39

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ To get consistent service DNS names `kafka-N.broker.kafka`(`.svc.cluster.local`)
88
kubectl create -f 00namespace.yml
99
```
1010

11+
## Prepare your cluster
12+
13+
For Minikube run `kubectl create -f configure-minikube/`.
14+
15+
There's a similar setup for gke, in `configure-gke` of course. You might want to tweak it before creating.
16+
1117
## Set up volume claims
1218

1319
You may add [storage class](http://kubernetes.io/docs/user-guide/persistent-volumes/#storageclasses)
@@ -24,18 +30,13 @@ kubectl -n kafka get pvc
2430

2531
## Set up Zookeeper
2632

27-
The Kafka book (Definitive Guide, O'Reilly 2016) recommends that Kafka has its own Zookeeper cluster with at least 5 instances,
28-
so we use the [official docker image](https://hub.docker.com/_/zookeeper/)
29-
but with a [startup script change to guess node id from hostname](https://github.com/solsson/zookeeper-docker/commit/df9474f858ad548be8a365cb000a4dd2d2e3a217).
33+
The Kafka book (Definitive Guide, O'Reilly 2016) recommends that Kafka has its own Zookeeper cluster with at least 5 instances.
34+
We use the zookeeper build that comes with the Kafka distribution, and tweak the startup command to support StatefulSet.
3035

3136
```
3237
kubectl create -f ./zookeeper/
3338
```
3439

35-
Despite being a StatefulSet, there is no persistent volume by default.
36-
If you lose your zookeeper cluster, kafka will be unaware that persisted topics exist.
37-
The data is still there, but you need to re-create topics.
38-
3940
## Start Kafka
4041

4142
Assuming you have your PVCs `Bound`, or enabled automatic provisioning (see above), go ahead and:

0 commit comments

Comments
 (0)