From: Kai Moritz Date: Wed, 27 Sep 2023 20:41:39 +0000 (+0200) Subject: Renamed and duplicated YAML-files for services X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=7f06a8ea42e6b25b0e223fc6d00bc34457e4e176;p=demos%2Fkafka%2Fmonitoring Renamed and duplicated YAML-files for services --- diff --git a/kubernetes/kafka-1-cluster.yaml b/kubernetes/kafka-1-cluster.yaml new file mode 100644 index 0000000..13265d7 --- /dev/null +++ b/kubernetes/kafka-1-cluster.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-1 + name: kafka-1 + namespace: kafka +spec: + ports: + - name: "9081" + port: 9081 + targetPort: 9081 + - name: "7001" + port: 7001 + targetPort: 7000 + selector: + kafka: kafka-1 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-1-localhost.yaml b/kubernetes/kafka-1-localhost.yaml new file mode 100644 index 0000000..13265d7 --- /dev/null +++ b/kubernetes/kafka-1-localhost.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-1 + name: kafka-1 + namespace: kafka +spec: + ports: + - name: "9081" + port: 9081 + targetPort: 9081 + - name: "7001" + port: 7001 + targetPort: 7000 + selector: + kafka: kafka-1 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-1-service.yaml b/kubernetes/kafka-1-service.yaml deleted file mode 100644 index 13265d7..0000000 --- a/kubernetes/kafka-1-service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - kafka: kafka-1 - name: kafka-1 - namespace: kafka -spec: - ports: - - name: "9081" - port: 9081 - targetPort: 9081 - - name: "7001" - port: 7001 - targetPort: 7000 - selector: - kafka: kafka-1 -status: - loadBalancer: {} diff --git a/kubernetes/kafka-2-cluster.yaml b/kubernetes/kafka-2-cluster.yaml new file mode 100644 index 0000000..d2a32d1 --- /dev/null +++ b/kubernetes/kafka-2-cluster.yaml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-2 + name: kafka-2 + namespace: kafka +spec: + ports: + - name: "9092" + port: 9092 + targetPort: 9082 + - name: "9082" + port: 9082 + targetPort: 9082 + - name: "7002" + port: 7002 + targetPort: 7000 + selector: + kafka: kafka-2 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-2-localhost.yaml b/kubernetes/kafka-2-localhost.yaml new file mode 100644 index 0000000..d2a32d1 --- /dev/null +++ b/kubernetes/kafka-2-localhost.yaml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-2 + name: kafka-2 + namespace: kafka +spec: + ports: + - name: "9092" + port: 9092 + targetPort: 9082 + - name: "9082" + port: 9082 + targetPort: 9082 + - name: "7002" + port: 7002 + targetPort: 7000 + selector: + kafka: kafka-2 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-2-service.yaml b/kubernetes/kafka-2-service.yaml deleted file mode 100644 index d2a32d1..0000000 --- a/kubernetes/kafka-2-service.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - kafka: kafka-2 - name: kafka-2 - namespace: kafka -spec: - ports: - - name: "9092" - port: 9092 - targetPort: 9082 - - name: "9082" - port: 9082 - targetPort: 9082 - - name: "7002" - port: 7002 - targetPort: 7000 - selector: - kafka: kafka-2 -status: - loadBalancer: {} diff --git a/kubernetes/kafka-3-cluster.yaml b/kubernetes/kafka-3-cluster.yaml new file mode 100644 index 0000000..be27112 --- /dev/null +++ b/kubernetes/kafka-3-cluster.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-3 + name: kafka-3 + namespace: kafka +spec: + ports: + - name: "9083" + port: 9083 + targetPort: 9083 + - name: "7003" + port: 7003 + targetPort: 7000 + selector: + kafka: kafka-3 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-3-localhost.yaml b/kubernetes/kafka-3-localhost.yaml new file mode 100644 index 0000000..be27112 --- /dev/null +++ b/kubernetes/kafka-3-localhost.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-3 + name: kafka-3 + namespace: kafka +spec: + ports: + - name: "9083" + port: 9083 + targetPort: 9083 + - name: "7003" + port: 7003 + targetPort: 7000 + selector: + kafka: kafka-3 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-3-service.yaml b/kubernetes/kafka-3-service.yaml deleted file mode 100644 index be27112..0000000 --- a/kubernetes/kafka-3-service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - kafka: kafka-3 - name: kafka-3 - namespace: kafka -spec: - ports: - - name: "9083" - port: 9083 - targetPort: 9083 - - name: "7003" - port: 7003 - targetPort: 7000 - selector: - kafka: kafka-3 -status: - loadBalancer: {} diff --git a/kubernetes/kafka-4-cluster.yaml b/kubernetes/kafka-4-cluster.yaml new file mode 100644 index 0000000..b616e9e --- /dev/null +++ b/kubernetes/kafka-4-cluster.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-4 + name: kafka-4 + namespace: kafka +spec: + ports: + - name: "9084" + port: 9084 + targetPort: 9084 + - name: "7004" + port: 7004 + targetPort: 7000 + selector: + kafka: kafka-4 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-4-localhost.yaml b/kubernetes/kafka-4-localhost.yaml new file mode 100644 index 0000000..b616e9e --- /dev/null +++ b/kubernetes/kafka-4-localhost.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-4 + name: kafka-4 + namespace: kafka +spec: + ports: + - name: "9084" + port: 9084 + targetPort: 9084 + - name: "7004" + port: 7004 + targetPort: 7000 + selector: + kafka: kafka-4 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-4-service.yaml b/kubernetes/kafka-4-service.yaml deleted file mode 100644 index b616e9e..0000000 --- a/kubernetes/kafka-4-service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - kafka: kafka-4 - name: kafka-4 - namespace: kafka -spec: - ports: - - name: "9084" - port: 9084 - targetPort: 9084 - - name: "7004" - port: 7004 - targetPort: 7000 - selector: - kafka: kafka-4 -status: - loadBalancer: {} diff --git a/kubernetes/kafka-5-cluster.yaml b/kubernetes/kafka-5-cluster.yaml new file mode 100644 index 0000000..bf551cd --- /dev/null +++ b/kubernetes/kafka-5-cluster.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-5 + name: kafka-5 + namespace: kafka +spec: + ports: + - name: "9085" + port: 9085 + targetPort: 9085 + - name: "7005" + port: 7005 + targetPort: 7000 + selector: + kafka: kafka-5 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-5-localhost.yaml b/kubernetes/kafka-5-localhost.yaml new file mode 100644 index 0000000..bf551cd --- /dev/null +++ b/kubernetes/kafka-5-localhost.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + kafka: kafka-5 + name: kafka-5 + namespace: kafka +spec: + ports: + - name: "9085" + port: 9085 + targetPort: 9085 + - name: "7005" + port: 7005 + targetPort: 7000 + selector: + kafka: kafka-5 +status: + loadBalancer: {} diff --git a/kubernetes/kafka-5-service.yaml b/kubernetes/kafka-5-service.yaml deleted file mode 100644 index bf551cd..0000000 --- a/kubernetes/kafka-5-service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - kafka: kafka-5 - name: kafka-5 - namespace: kafka -spec: - ports: - - name: "9085" - port: 9085 - targetPort: 9085 - - name: "7005" - port: 7005 - targetPort: 7000 - selector: - kafka: kafka-5 -status: - loadBalancer: {}