Skip to content

Commit 3395d87

Browse files
authored
Merge pull request Yolean#324 from Yolean/topic-create-broker-defaults
Make sure topic create jobs use broker defaults
2 parents 2501824 + 73bcb45 commit 3395d87

File tree

4 files changed

+10
-22
lines changed

4 files changed

+10
-22
lines changed

cruise-control/topic-create.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
spec:
99
containers:
1010
- name: topic-create
11-
image: solsson/kafka-cli@sha256:9fa3306e9f5d18283d10e01f7c115d8321eedc682f262aff784bd0126e1f2221
11+
image: solsson/kafka:native-cli@sha256:7a4cc4ef875aea50b8d4dbb525cbac0ef3a5c6e611fcafc2c415ca432ebe5601
1212
command:
1313
- ./bin/kafka-topics.sh
1414
- --zookeeper
@@ -17,10 +17,6 @@ spec:
1717
- --if-not-exists
1818
- --topic
1919
- __CruiseControlMetrics
20-
- --partitions
21-
- '12'
22-
- --replication-factor
23-
- '3'
2420
resources:
2521
limits:
2622
cpu: 100m

events-kube/topic-create.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
spec:
99
containers:
1010
- name: topic-create
11-
image: solsson/kafka:2.1.0@sha256:ac3f06d87d45c7be727863f31e79fbfdcb9c610b51ba9cf03c75a95d602f15e1
11+
image: solsson/kafka:native-cli@sha256:7a4cc4ef875aea50b8d4dbb525cbac0ef3a5c6e611fcafc2c415ca432ebe5601
1212
command:
1313
- ./bin/kafka-topics.sh
1414
- --zookeeper
@@ -17,12 +17,8 @@ spec:
1717
- --if-not-exists
1818
- --topic
1919
- ops.kube-events.stream.json
20-
- --partitions
21-
- "12"
22-
- --replication-factor
23-
- "2"
2420
resources:
2521
limits:
26-
cpu: 200m
27-
memory: 100Mi
22+
cpu: 100m
23+
memory: 20Mi
2824
restartPolicy: Never

kafka/test/kafkacat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
spec:
7373
containers:
7474
- name: topic-create
75-
image: solsson/kafka-cli@sha256:9fa3306e9f5d18283d10e01f7c115d8321eedc682f262aff784bd0126e1f2221
75+
image: solsson/kafka:native-cli@sha256:7a4cc4ef875aea50b8d4dbb525cbac0ef3a5c6e611fcafc2c415ca432ebe5601
7676
command:
7777
- ./bin/kafka-topics.sh
7878
- --zookeeper
@@ -83,8 +83,8 @@ spec:
8383
- test-kafkacat
8484
resources:
8585
limits:
86-
cpu: 200m
87-
memory: 100Mi
86+
cpu: 100m
87+
memory: 20Mi
8888
restartPolicy: Never
8989
---
9090
apiVersion: apps/v1

kafka/test/produce-consume.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
5555
spec:
5656
containers:
5757
- name: topic-create
58-
image: solsson/kafka-cli@sha256:9fa3306e9f5d18283d10e01f7c115d8321eedc682f262aff784bd0126e1f2221
58+
image: solsson/kafka:native-cli@sha256:7a4cc4ef875aea50b8d4dbb525cbac0ef3a5c6e611fcafc2c415ca432ebe5601
5959
command:
6060
- ./bin/kafka-topics.sh
6161
- --zookeeper
@@ -64,14 +64,10 @@ spec:
6464
- --if-not-exists
6565
- --topic
6666
- test-produce-consume
67-
- --partitions
68-
- "3"
69-
- --replication-factor
70-
- "2"
7167
resources:
7268
limits:
73-
cpu: 200m
74-
memory: 100Mi
69+
cpu: 100m
70+
memory: 20Mi
7571
restartPolicy: Never
7672
---
7773
apiVersion: apps/v1

0 commit comments

Comments
 (0)