Strimzi - Blog 3: Strimzi Entity-Operator
authorKai Moritz <kai@juplo.de>
Tue, 3 Oct 2023 10:57:43 +0000 (12:57 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 4 Oct 2023 17:40:13 +0000 (19:40 +0200)
kubectl -n juplo get all
kubectl -n juplo apply -f topic.yaml
kubectl -n juplo get kafkatopics
kubectl -n juplo get kafkatopics/test -o yaml

strimzi-kafka/cluster.yaml
strimzi-kafka/topic.yaml [new file with mode: 0644]

index 93fc18f..e1afdc7 100644 (file)
@@ -28,3 +28,5 @@ spec:
     replicas: 1
     storage:
       type: ephemeral
+  entityOperator:
+    topicOperator: {}
diff --git a/strimzi-kafka/topic.yaml b/strimzi-kafka/topic.yaml
new file mode 100644 (file)
index 0000000..45d821a
--- /dev/null
@@ -0,0 +1,9 @@
+apiVersion: kafka.strimzi.io/v1beta2
+kind: KafkaTopic
+metadata:
+  name: test
+  labels:
+    strimzi.io/cluster: juplo
+spec:
+  partitions: 3
+  replicas: 1