From: Kai Moritz Date: Fri, 29 Sep 2023 10:25:04 +0000 (+0200) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=6f6c0874b17e638a91ae25da3249c2307584fc54;p=demos%2Fkafka%2Fmonitoring WIP --- diff --git a/kubernetes/kafka-1-cluster.yaml b/kubernetes/kafka-1-cluster.yaml index ce36e61..c18e74e 100644 --- a/kubernetes/kafka-1-cluster.yaml +++ b/kubernetes/kafka-1-cluster.yaml @@ -2,8 +2,8 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-1 - name: kafka-1-cluster + kafka: kafka-1-cluster + name: kafka-1 namespace: kafka spec: ports: diff --git a/kubernetes/kafka-1-deployment.yaml b/kubernetes/kafka-1-deployment.yaml index fc57129..49318c3 100644 --- a/kubernetes/kafka-1-deployment.yaml +++ b/kubernetes/kafka-1-deployment.yaml @@ -21,6 +21,8 @@ spec: - env: - name: ALLOW_PLAINTEXT_LISTENER value: "yes" + - name: KAFKA_KRAFT_CLUSTER_ID + value: aDOok3cnTIGJ8pIaKs5Bxg - name: KAFKA_BROKER_ID value: "1" - name: KAFKA_CFG_ADVERTISED_LISTENERS diff --git a/kubernetes/kafka-1-localhost.yaml b/kubernetes/kafka-1-localhost.yaml index d8187f3..df37dc2 100644 --- a/kubernetes/kafka-1-localhost.yaml +++ b/kubernetes/kafka-1-localhost.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-1 + kafka: kafka-1-localhost name: kafka-1-localhost namespace: kafka spec: diff --git a/kubernetes/kafka-2-cluster.yaml b/kubernetes/kafka-2-cluster.yaml index 815ba6a..9841db8 100644 --- a/kubernetes/kafka-2-cluster.yaml +++ b/kubernetes/kafka-2-cluster.yaml @@ -2,8 +2,8 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-2 - name: kafka-2-cluster + kafka: kafka-2-cluster + name: kafka-2 namespace: kafka spec: ports: diff --git a/kubernetes/kafka-2-deployment.yaml b/kubernetes/kafka-2-deployment.yaml index fdbd75a..9e22466 100644 --- a/kubernetes/kafka-2-deployment.yaml +++ b/kubernetes/kafka-2-deployment.yaml @@ -21,6 +21,8 @@ spec: - env: - name: ALLOW_PLAINTEXT_LISTENER value: "yes" + - name: KAFKA_KRAFT_CLUSTER_ID + value: aDOok3cnTIGJ8pIaKs5Bxg - name: KAFKA_BROKER_ID value: "2" - name: KAFKA_CFG_ADVERTISED_LISTENERS diff --git a/kubernetes/kafka-2-localhost.yaml b/kubernetes/kafka-2-localhost.yaml index dc87712..6065df9 100644 --- a/kubernetes/kafka-2-localhost.yaml +++ b/kubernetes/kafka-2-localhost.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-2 + kafka: kafka-2-localhost name: kafka-2-localhost namespace: kafka spec: diff --git a/kubernetes/kafka-3-cluster.yaml b/kubernetes/kafka-3-cluster.yaml index 256065e..d51c7df 100644 --- a/kubernetes/kafka-3-cluster.yaml +++ b/kubernetes/kafka-3-cluster.yaml @@ -2,8 +2,8 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-3 - name: kafka-3-cluster + kafka: kafka-3-cluster + name: kafka-3 namespace: kafka spec: ports: diff --git a/kubernetes/kafka-3-deployment.yaml b/kubernetes/kafka-3-deployment.yaml index fa1816a..71ebf3f 100644 --- a/kubernetes/kafka-3-deployment.yaml +++ b/kubernetes/kafka-3-deployment.yaml @@ -21,6 +21,8 @@ spec: - env: - name: ALLOW_PLAINTEXT_LISTENER value: "yes" + - name: KAFKA_KRAFT_CLUSTER_ID + value: aDOok3cnTIGJ8pIaKs5Bxg - name: KAFKA_BROKER_ID value: "3" - name: KAFKA_CFG_ADVERTISED_LISTENERS diff --git a/kubernetes/kafka-3-localhost.yaml b/kubernetes/kafka-3-localhost.yaml index a58f5d9..7deb41b 100644 --- a/kubernetes/kafka-3-localhost.yaml +++ b/kubernetes/kafka-3-localhost.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-3 + kafka: kafka-3-localhost name: kafka-3-localhost namespace: kafka spec: diff --git a/kubernetes/kafka-4-cluster.yaml b/kubernetes/kafka-4-cluster.yaml index 6155fcb..4451bdf 100644 --- a/kubernetes/kafka-4-cluster.yaml +++ b/kubernetes/kafka-4-cluster.yaml @@ -2,8 +2,8 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-4 - name: kafka-4-cluster + kafka: kafka-4-cluster + name: kafka-4 namespace: kafka spec: ports: diff --git a/kubernetes/kafka-4-deployment.yaml b/kubernetes/kafka-4-deployment.yaml index 454a29a..806066d 100644 --- a/kubernetes/kafka-4-deployment.yaml +++ b/kubernetes/kafka-4-deployment.yaml @@ -21,6 +21,8 @@ spec: - env: - name: ALLOW_PLAINTEXT_LISTENER value: "yes" + - name: KAFKA_KRAFT_CLUSTER_ID + value: aDOok3cnTIGJ8pIaKs5Bxg - name: KAFKA_BROKER_ID value: "4" - name: KAFKA_CFG_ADVERTISED_LISTENERS diff --git a/kubernetes/kafka-4-localhost.yaml b/kubernetes/kafka-4-localhost.yaml index 874958b..ebd0e52 100644 --- a/kubernetes/kafka-4-localhost.yaml +++ b/kubernetes/kafka-4-localhost.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-4 + kafka: kafka-4-localhost name: kafka-4-localhost namespace: kafka spec: diff --git a/kubernetes/kafka-5-cluster.yaml b/kubernetes/kafka-5-cluster.yaml index ed58f91..7cbc0a6 100644 --- a/kubernetes/kafka-5-cluster.yaml +++ b/kubernetes/kafka-5-cluster.yaml @@ -2,8 +2,8 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-5 - name: kafka-5-cluster + kafka: kafka-5-cluster + name: kafka-5 namespace: kafka spec: ports: diff --git a/kubernetes/kafka-5-deployment.yaml b/kubernetes/kafka-5-deployment.yaml index e50a60d..0c946b2 100644 --- a/kubernetes/kafka-5-deployment.yaml +++ b/kubernetes/kafka-5-deployment.yaml @@ -21,6 +21,8 @@ spec: - env: - name: ALLOW_PLAINTEXT_LISTENER value: "yes" + - name: KAFKA_KRAFT_CLUSTER_ID + value: aDOok3cnTIGJ8pIaKs5Bxg - name: KAFKA_BROKER_ID value: "5" - name: KAFKA_CFG_ADVERTISED_LISTENERS diff --git a/kubernetes/kafka-5-localhost.yaml b/kubernetes/kafka-5-localhost.yaml index 2b03a69..f21d339 100644 --- a/kubernetes/kafka-5-localhost.yaml +++ b/kubernetes/kafka-5-localhost.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: labels: - kafka: kafka-5 + kafka: kafka-5-localhost name: kafka-5-localhost namespace: kafka spec: