diff options
Diffstat (limited to 'logs-streaming/topic-ops-kube-logs-raw.yml')
-rw-r--r-- | logs-streaming/topic-ops-kube-logs-raw.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/logs-streaming/topic-ops-kube-logs-raw.yml b/logs-streaming/topic-ops-kube-logs-raw.yml new file mode 100644 index 0000000..9fd9418 --- /dev/null +++ b/logs-streaming/topic-ops-kube-logs-raw.yml @@ -0,0 +1,32 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: topic-ops-kube-logs-raw + namespace: kafka +spec: + template: + metadata: + labels: + app: topic-create + topic-id: ops-kube-logs-raw + topic-gen: "001" + spec: + containers: + - name: kafka + image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d + command: + - ./bin/kafka-topics.sh + - --zookeeper + - zookeeper:2181 + - --create + - --if-not-exists + - --topic + - ops-kube-logs-raw-001 + - --partitions + - "1" + - --replication-factor + - "1" + - --config + # this might be eight days + - retention.ms=69125000 + restartPolicy: Never |