Skip to content

Commit 02140ec

Browse files
committed
Kustomize is a good fit for maintaining a setup over time
as it points out which resources/modules to apply and supports commit-ish refs
1 parent 553f327 commit 02140ec

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,16 @@ kubectl apply -k github.com/Yolean/kubernetes-kafka/variants/scale-1-ephemeral/?
4444

4545
### Maintaining your own kustomization
4646

47-
`kubectl apply -k` takes a single overlay, meaning that you can't compose different overlays from this repo.
48-
You'll probably want to maintain your own variant.
49-
One option is to keep kubernets-kafka as a git submodule and edit the relative path from an example variant.
47+
Start your variant as a new folder in your choice of version control, with a base `kustomization.yaml` pointing to a tag or revision in this repository:
48+
49+
```
50+
bases:
51+
- github.com/Yolean/kubernetes-kafka/rbac-namespace-default/?ref=553f327
52+
- github.com/Yolean/kubernetes-kafka/kafka/?ref=553f327
53+
- github.com/Yolean/kubernetes-kafka/zookeeper/?ref=553f327
54+
```
55+
56+
Then pick and chose from patches our [example variants](https://github.com/Yolean/kubernetes-kafka/tree/master/variants) to tailor your Kafka setup.
5057

5158
## Version history
5259

0 commit comments

Comments
 (0)