Skip to content

Commit

Permalink
Merge pull request #324 from Yolean/topic-create-broker-defaults
Browse files Browse the repository at this point in the history
Make sure topic create jobs use broker defaults
  • Loading branch information
solsson authored Jul 10, 2020
2 parents 2501824 + 73bcb45 commit 3395d87
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
6 changes: 1 addition & 5 deletions cruise-control/topic-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
spec:
containers:
- name: topic-create
image: solsson/kafka-cli@sha256:9fa3306e9f5d18283d10e01f7c115d8321eedc682f262aff784bd0126e1f2221
image: solsson/kafka:native-cli@sha256:7a4cc4ef875aea50b8d4dbb525cbac0ef3a5c6e611fcafc2c415ca432ebe5601
command:
- ./bin/kafka-topics.sh
- --zookeeper
Expand All @@ -17,10 +17,6 @@ spec:
- --if-not-exists
- --topic
- __CruiseControlMetrics
- --partitions
- '12'
- --replication-factor
- '3'
resources:
limits:
cpu: 100m
Expand Down
10 changes: 3 additions & 7 deletions events-kube/topic-create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
spec:
containers:
- name: topic-create
image: solsson/kafka:2.1.0@sha256:ac3f06d87d45c7be727863f31e79fbfdcb9c610b51ba9cf03c75a95d602f15e1
image: solsson/kafka:native-cli@sha256:7a4cc4ef875aea50b8d4dbb525cbac0ef3a5c6e611fcafc2c415ca432ebe5601
command:
- ./bin/kafka-topics.sh
- --zookeeper
Expand All @@ -17,12 +17,8 @@ spec:
- --if-not-exists
- --topic
- ops.kube-events.stream.json
- --partitions
- "12"
- --replication-factor
- "2"
resources:
limits:
cpu: 200m
memory: 100Mi
cpu: 100m
memory: 20Mi
restartPolicy: Never
6 changes: 3 additions & 3 deletions kafka/test/kafkacat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
spec:
containers:
- name: topic-create
image: solsson/kafka-cli@sha256:9fa3306e9f5d18283d10e01f7c115d8321eedc682f262aff784bd0126e1f2221
image: solsson/kafka:native-cli@sha256:7a4cc4ef875aea50b8d4dbb525cbac0ef3a5c6e611fcafc2c415ca432ebe5601
command:
- ./bin/kafka-topics.sh
- --zookeeper
Expand All @@ -83,8 +83,8 @@ spec:
- test-kafkacat
resources:
limits:
cpu: 200m
memory: 100Mi
cpu: 100m
memory: 20Mi
restartPolicy: Never
---
apiVersion: apps/v1
Expand Down
10 changes: 3 additions & 7 deletions kafka/test/produce-consume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
spec:
containers:
- name: topic-create
image: solsson/kafka-cli@sha256:9fa3306e9f5d18283d10e01f7c115d8321eedc682f262aff784bd0126e1f2221
image: solsson/kafka:native-cli@sha256:7a4cc4ef875aea50b8d4dbb525cbac0ef3a5c6e611fcafc2c415ca432ebe5601
command:
- ./bin/kafka-topics.sh
- --zookeeper
Expand All @@ -64,14 +64,10 @@ spec:
- --if-not-exists
- --topic
- test-produce-consume
- --partitions
- "3"
- --replication-factor
- "2"
resources:
limits:
cpu: 200m
memory: 100Mi
cpu: 100m
memory: 20Mi
restartPolicy: Never
---
apiVersion: apps/v1
Expand Down

0 comments on commit 3395d87

Please sign in to comment.