From 5ed798064962b52e3b22e879bcd6e4786dfda12a Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 3 Oct 2023 12:57:43 +0200 Subject: [PATCH] Strimzi - Blog 3: Strimzi Entity-Operator 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 | 2 ++ strimzi-kafka/topic.yaml | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 strimzi-kafka/topic.yaml diff --git a/strimzi-kafka/cluster.yaml b/strimzi-kafka/cluster.yaml index 93fc18f..e1afdc7 100644 --- a/strimzi-kafka/cluster.yaml +++ b/strimzi-kafka/cluster.yaml @@ -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 index 0000000..45d821a --- /dev/null +++ b/strimzi-kafka/topic.yaml @@ -0,0 +1,9 @@ +apiVersion: kafka.strimzi.io/v1beta2 +kind: KafkaTopic +metadata: + name: test + labels: + strimzi.io/cluster: juplo +spec: + partitions: 3 + replicas: 1 -- 2.20.1