blob: d4aaf584b5954b7178965794cff8c69cb88c9383 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
apiVersion: batch/v1
kind: Job
metadata:
name: topic-ops-kube-logs-filebeat
namespace: logs-kafka
spec:
template:
metadata:
labels:
app: topic-create
topic-id: ops-kube-logs-filebeat
topic-gen: "001"
spec:
containers:
- name: kafka
image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
command:
- ./bin/kafka-topics.sh
- --zookeeper
- zookeeper.kafka:2181
- --create
- --if-not-exists
- --topic
- ops-kube-logs-filebeat-001
- --partitions
- "1"
- --replication-factor
- "2"
- --config
- retention.ms=6912500000
restartPolicy: Never
|