Skip to content

Commit 11496d2

Browse files
committed
Merge branch 'persistent-volumes-retain', the readme ...
part that recommends manual intervention
2 parents 197eaf3 + 4d3754d commit 11496d2

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ How to use:
1111
* Kafka for real: fork and have a look at [addon](https://github.com/Yolean/kubernetes-kafka/labels/addon)s.
1212
* Join the discussion in issues and PRs.
1313

14-
Why?
15-
See for yourself, but we think this project gives you better adaptability than [helm](https://github.com/kubernetes/helm) [chart](https://github.com/kubernetes/charts/tree/master/incubator/kafka)s. No single readable readme or template can properly introduce both Kafka and Kubernets.
14+
No readable readme can properly introduce both [Kafka](http://kafka.apache.org/) and [Kubernets](https://kubernetes.io/),
15+
but we think the combination of the two is a great backbone for microservices.
1616
Back when we read [Newman](http://samnewman.io/books/building_microservices/) we were beginners with both.
1717
Now we've read [Kleppmann](http://dataintensive.net/), [Confluent](https://www.confluent.io/blog/) and [SRE](https://landing.google.com/sre/book.html) and enjoy this "Streaming Platform" lock-in :smile:.
1818

19+
We also think the plain-yaml approach of this project is easier to understand and evolve than [helm](https://github.com/kubernetes/helm) [chart](https://github.com/kubernetes/charts/tree/master/incubator/kafka)s.
20+
1921
## What you get
2022

2123
Keep an eye on `kubectl --namespace kafka get pods -w`.
@@ -50,7 +52,7 @@ kubectl -n kafka logs kafka-0 | grep "Registered broker"
5052
That's it. Just add business value :wink:.
5153
For clients we tend to use [librdkafka](https://github.com/edenhill/librdkafka)-based drivers like [node-rdkafka](https://github.com/Blizzard/node-rdkafka).
5254
To use [Kafka Connect](http://kafka.apache.org/documentation/#connect) and [Kafka Streams](http://kafka.apache.org/documentation/streams/) you may want to take a look at our [sample](https://github.com/solsson/dockerfiles/tree/master/connect-files) [Dockerfile](https://github.com/solsson/dockerfiles/tree/master/streams-logfilter)s.
53-
Don't forget the [addon](https://github.com/Yolean/kubernetes-kafka/labels/addon)s.
55+
And don't forget the [addon](https://github.com/Yolean/kubernetes-kafka/labels/addon)s.
5456

5557
## RBAC
5658

@@ -59,7 +61,15 @@ For clusters that enfoce [RBAC](https://kubernetes.io/docs/admin/authorization/r
5961
kubectl apply -f rbac-namespace-default/
6062
```
6163

62-
# Tests
64+
## Caution: `Delete` Reclaim Policy is default
65+
66+
In production you likely want to [manually set Reclaim Policy](https://kubernetes.io/docs/tasks/administer-cluster/change-pv-reclaim-policy/),
67+
our your data will be gone if the generated [volume claim](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)s are deleted.
68+
69+
This can't be done [in manifests](https://github.com/Yolean/kubernetes-kafka/pull/50),
70+
at least not [until Kubernetes 1.8](https://github.com/kubernetes/features/issues/352).
71+
72+
## Tests
6373

6474
```
6575
kubectl apply -f test/

0 commit comments

Comments
 (0)