Skip to content

Commit e7fc38f

Browse files
committed
Creates the topic that Cruise Control needs at start
1 parent ff34f96 commit e7fc38f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

cruise-control/topic-create.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: topic-cruise-control-metrics
5+
namespace: kafka
6+
spec:
7+
template:
8+
spec:
9+
containers:
10+
- name: topic-create
11+
image: solsson/kafka:2.1.0@sha256:ac3f06d87d45c7be727863f31e79fbfdcb9c610b51ba9cf03c75a95d602f15e1
12+
command:
13+
- ./bin/kafka-topics.sh
14+
- --zookeeper
15+
- zookeeper.kafka.svc.cluster.local:2181
16+
- --create
17+
- --if-not-exists
18+
- --topic
19+
- __CruiseControlMetrics
20+
- --partitions
21+
- '12'
22+
- --replication-factor
23+
- '3'
24+
resources:
25+
limits:
26+
cpu: 200m
27+
memory: 100Mi
28+
restartPolicy: Never

0 commit comments

Comments
 (0)