Skip to content

Commit d36551f

Browse files
committed
Creates the topic
1 parent 7480401 commit d36551f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: topic-ops-kube-logs-raw
5+
namespace: kafka
6+
spec:
7+
template:
8+
metadata:
9+
labels:
10+
app: topic-create
11+
topic-id: ops-kube-logs-raw
12+
topic-gen: "001"
13+
spec:
14+
containers:
15+
- name: kafka
16+
image: solsson/kafka:0.11.0.0@sha256:4c194db2ec15698aca6f1aa8a2fd5e5c566caed82b4bf43446c388f315397756
17+
command:
18+
- ./bin/kafka-topics.sh
19+
- --zookeeper
20+
- zookeeper:2181
21+
- --create
22+
- --if-not-exists
23+
- --topic
24+
- ops-kube-logs-raw-001
25+
- --partitions
26+
- "1"
27+
- --replication-factor
28+
- "1"
29+
- --config
30+
# this might be eight days
31+
- retention.ms=69125000
32+
restartPolicy: Never

0 commit comments

Comments
 (0)