From 55ac39a5015a04614a182d10befd7d74f028b33d Mon Sep 17 00:00:00 2001 From: Adam0Brien Date: Tue, 26 Nov 2024 14:35:34 +0000 Subject: [PATCH] add kafka topic0 --- deploy/kind/e2e/e2e-batch.yaml | 2 +- deploy/kind/inventory/strimzi.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/deploy/kind/e2e/e2e-batch.yaml b/deploy/kind/e2e/e2e-batch.yaml index 9a53a7b2..9a7a7531 100644 --- a/deploy/kind/e2e/e2e-batch.yaml +++ b/deploy/kind/e2e/e2e-batch.yaml @@ -27,7 +27,7 @@ spec: - name: INV_HTTP_URL value: "kessel-inventory-service:8081" - name: KAFKA_BOOTSTRAP_SERVERS - value: "my-cluster-kafka-bootstrap:9092" # my-cluster-kafka-bootstrap.default.svc.cluster.local:9092 + value: "my-cluster-kafka-bootstrap:9092" command: ["/usr/local/bin/e2e-inventory-tests", "-test.v"] restartPolicy: Never diff --git a/deploy/kind/inventory/strimzi.yaml b/deploy/kind/inventory/strimzi.yaml index 75f36999..a781a25b 100644 --- a/deploy/kind/inventory/strimzi.yaml +++ b/deploy/kind/inventory/strimzi.yaml @@ -31,3 +31,17 @@ spec: replicas: 3 storage: type: ephemeral +--- +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: kessel-inventory + namespace: default + labels: + strimzi.io/cluster: my-cluster +spec: + partitions: 3 + replicas: 3 + config: + retention.ms: 604800000 + segment.bytes: 1073741824