From: Kai Moritz Date: Tue, 3 Oct 2023 10:57:43 +0000 (+0200) Subject: Strimzi - Blog 3: Strimzi Entity-Operator X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=5ed798064962b52e3b22e879bcd6e4786dfda12a;p=demos%2Fkafka%2Fmonitoring 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 --- 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