From a8b6993b84a592720ed7c1e009014e2d1428c1fa Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 27 Sep 2023 21:39:39 +0200 Subject: [PATCH] Removed not needed metadata and switched label and namespace to `kafka` --- kubernetes/kafka-1-deployment.yaml | 17 ++++------------- kubernetes/kafka-1-persistentvolumeclaim.yaml | 5 ++--- kubernetes/kafka-1-service.yaml | 10 +++------- kubernetes/kafka-2-deployment.yaml | 17 ++++------------- kubernetes/kafka-2-persistentvolumeclaim.yaml | 5 ++--- kubernetes/kafka-2-service.yaml | 10 +++------- kubernetes/kafka-3-deployment.yaml | 17 ++++------------- kubernetes/kafka-3-persistentvolumeclaim.yaml | 5 ++--- kubernetes/kafka-3-service.yaml | 10 +++------- kubernetes/kafka-4-deployment.yaml | 17 ++++------------- kubernetes/kafka-4-persistentvolumeclaim.yaml | 5 ++--- kubernetes/kafka-4-service.yaml | 10 +++------- kubernetes/kafka-5-deployment.yaml | 17 ++++------------- kubernetes/kafka-5-persistentvolumeclaim.yaml | 5 ++--- kubernetes/kafka-5-service.yaml | 10 +++------- kubernetes/zookeeper-deployment.yaml | 17 ++++------------- kubernetes/zookeeper-persistentvolumeclaim.yaml | 5 ++--- kubernetes/zookeeper-service.yaml | 10 +++------- 18 files changed, 54 insertions(+), 138 deletions(-) diff --git a/kubernetes/kafka-1-deployment.yaml b/kubernetes/kafka-1-deployment.yaml index 7807b87..fc57129 100644 --- a/kubernetes/kafka-1-deployment.yaml +++ b/kubernetes/kafka-1-deployment.yaml @@ -1,30 +1,21 @@ apiVersion: apps/v1 kind: Deployment metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-1 + kafka: kafka-1 name: kafka-1 - namespace: default + namespace: kafka spec: replicas: 1 selector: matchLabels: - io.kompose.service: kafka-1 + kafka: kafka-1 strategy: type: Recreate template: metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.network/kubernetes-default: "true" - io.kompose.service: kafka-1 + kafka: kafka-1 spec: containers: - env: diff --git a/kubernetes/kafka-1-persistentvolumeclaim.yaml b/kubernetes/kafka-1-persistentvolumeclaim.yaml index 8bdc9c2..a1ae1fb 100644 --- a/kubernetes/kafka-1-persistentvolumeclaim.yaml +++ b/kubernetes/kafka-1-persistentvolumeclaim.yaml @@ -1,11 +1,10 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - creationTimestamp: null labels: - io.kompose.service: kafka-1 + kafka: kafka-1 name: kafka-1 - namespace: default + namespace: kafka spec: accessModes: - ReadWriteOnce diff --git a/kubernetes/kafka-1-service.yaml b/kubernetes/kafka-1-service.yaml index bff5c5d..13265d7 100644 --- a/kubernetes/kafka-1-service.yaml +++ b/kubernetes/kafka-1-service.yaml @@ -1,14 +1,10 @@ apiVersion: v1 kind: Service metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-1 + kafka: kafka-1 name: kafka-1 - namespace: default + namespace: kafka spec: ports: - name: "9081" @@ -18,6 +14,6 @@ spec: port: 7001 targetPort: 7000 selector: - io.kompose.service: kafka-1 + kafka: kafka-1 status: loadBalancer: {} diff --git a/kubernetes/kafka-2-deployment.yaml b/kubernetes/kafka-2-deployment.yaml index d5ab983..fdbd75a 100644 --- a/kubernetes/kafka-2-deployment.yaml +++ b/kubernetes/kafka-2-deployment.yaml @@ -1,30 +1,21 @@ apiVersion: apps/v1 kind: Deployment metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-2 + kafka: kafka-2 name: kafka-2 - namespace: default + namespace: kafka spec: replicas: 1 selector: matchLabels: - io.kompose.service: kafka-2 + kafka: kafka-2 strategy: type: Recreate template: metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.network/kubernetes-default: "true" - io.kompose.service: kafka-2 + kafka: kafka-2 spec: containers: - env: diff --git a/kubernetes/kafka-2-persistentvolumeclaim.yaml b/kubernetes/kafka-2-persistentvolumeclaim.yaml index a1a8b2e..79ad767 100644 --- a/kubernetes/kafka-2-persistentvolumeclaim.yaml +++ b/kubernetes/kafka-2-persistentvolumeclaim.yaml @@ -1,11 +1,10 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - creationTimestamp: null labels: - io.kompose.service: kafka-2 + kafka: kafka-2 name: kafka-2 - namespace: default + namespace: kafka spec: accessModes: - ReadWriteOnce diff --git a/kubernetes/kafka-2-service.yaml b/kubernetes/kafka-2-service.yaml index d5b7eff..d2a32d1 100644 --- a/kubernetes/kafka-2-service.yaml +++ b/kubernetes/kafka-2-service.yaml @@ -1,14 +1,10 @@ apiVersion: v1 kind: Service metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-2 + kafka: kafka-2 name: kafka-2 - namespace: default + namespace: kafka spec: ports: - name: "9092" @@ -21,6 +17,6 @@ spec: port: 7002 targetPort: 7000 selector: - io.kompose.service: kafka-2 + kafka: kafka-2 status: loadBalancer: {} diff --git a/kubernetes/kafka-3-deployment.yaml b/kubernetes/kafka-3-deployment.yaml index 5bd8976..fa1816a 100644 --- a/kubernetes/kafka-3-deployment.yaml +++ b/kubernetes/kafka-3-deployment.yaml @@ -1,30 +1,21 @@ apiVersion: apps/v1 kind: Deployment metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-3 + kafka: kafka-3 name: kafka-3 - namespace: default + namespace: kafka spec: replicas: 1 selector: matchLabels: - io.kompose.service: kafka-3 + kafka: kafka-3 strategy: type: Recreate template: metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.network/kubernetes-default: "true" - io.kompose.service: kafka-3 + kafka: kafka-3 spec: containers: - env: diff --git a/kubernetes/kafka-3-persistentvolumeclaim.yaml b/kubernetes/kafka-3-persistentvolumeclaim.yaml index 7320c09..2c43b48 100644 --- a/kubernetes/kafka-3-persistentvolumeclaim.yaml +++ b/kubernetes/kafka-3-persistentvolumeclaim.yaml @@ -1,11 +1,10 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - creationTimestamp: null labels: - io.kompose.service: kafka-3 + kafka: kafka-3 name: kafka-3 - namespace: default + namespace: kafka spec: accessModes: - ReadWriteOnce diff --git a/kubernetes/kafka-3-service.yaml b/kubernetes/kafka-3-service.yaml index 3a5ca44..be27112 100644 --- a/kubernetes/kafka-3-service.yaml +++ b/kubernetes/kafka-3-service.yaml @@ -1,14 +1,10 @@ apiVersion: v1 kind: Service metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-3 + kafka: kafka-3 name: kafka-3 - namespace: default + namespace: kafka spec: ports: - name: "9083" @@ -18,6 +14,6 @@ spec: port: 7003 targetPort: 7000 selector: - io.kompose.service: kafka-3 + kafka: kafka-3 status: loadBalancer: {} diff --git a/kubernetes/kafka-4-deployment.yaml b/kubernetes/kafka-4-deployment.yaml index cf1fa3b..454a29a 100644 --- a/kubernetes/kafka-4-deployment.yaml +++ b/kubernetes/kafka-4-deployment.yaml @@ -1,30 +1,21 @@ apiVersion: apps/v1 kind: Deployment metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-4 + kafka: kafka-4 name: kafka-4 - namespace: default + namespace: kafka spec: replicas: 1 selector: matchLabels: - io.kompose.service: kafka-4 + kafka: kafka-4 strategy: type: Recreate template: metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.network/kubernetes-default: "true" - io.kompose.service: kafka-4 + kafka: kafka-4 spec: containers: - env: diff --git a/kubernetes/kafka-4-persistentvolumeclaim.yaml b/kubernetes/kafka-4-persistentvolumeclaim.yaml index a346f0d..3b1b84d 100644 --- a/kubernetes/kafka-4-persistentvolumeclaim.yaml +++ b/kubernetes/kafka-4-persistentvolumeclaim.yaml @@ -1,11 +1,10 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - creationTimestamp: null labels: - io.kompose.service: kafka-4 + kafka: kafka-4 name: kafka-4 - namespace: default + namespace: kafka spec: accessModes: - ReadWriteOnce diff --git a/kubernetes/kafka-4-service.yaml b/kubernetes/kafka-4-service.yaml index 91f8263..b616e9e 100644 --- a/kubernetes/kafka-4-service.yaml +++ b/kubernetes/kafka-4-service.yaml @@ -1,14 +1,10 @@ apiVersion: v1 kind: Service metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-4 + kafka: kafka-4 name: kafka-4 - namespace: default + namespace: kafka spec: ports: - name: "9084" @@ -18,6 +14,6 @@ spec: port: 7004 targetPort: 7000 selector: - io.kompose.service: kafka-4 + kafka: kafka-4 status: loadBalancer: {} diff --git a/kubernetes/kafka-5-deployment.yaml b/kubernetes/kafka-5-deployment.yaml index de5915c..e50a60d 100644 --- a/kubernetes/kafka-5-deployment.yaml +++ b/kubernetes/kafka-5-deployment.yaml @@ -1,30 +1,21 @@ apiVersion: apps/v1 kind: Deployment metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-5 + kafka: kafka-5 name: kafka-5 - namespace: default + namespace: kafka spec: replicas: 1 selector: matchLabels: - io.kompose.service: kafka-5 + kafka: kafka-5 strategy: type: Recreate template: metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.network/kubernetes-default: "true" - io.kompose.service: kafka-5 + kafka: kafka-5 spec: containers: - env: diff --git a/kubernetes/kafka-5-persistentvolumeclaim.yaml b/kubernetes/kafka-5-persistentvolumeclaim.yaml index 12ef9bd..92d5bd7 100644 --- a/kubernetes/kafka-5-persistentvolumeclaim.yaml +++ b/kubernetes/kafka-5-persistentvolumeclaim.yaml @@ -1,11 +1,10 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - creationTimestamp: null labels: - io.kompose.service: kafka-5 + kafka: kafka-5 name: kafka-5 - namespace: default + namespace: kafka spec: accessModes: - ReadWriteOnce diff --git a/kubernetes/kafka-5-service.yaml b/kubernetes/kafka-5-service.yaml index 975ac4e..bf551cd 100644 --- a/kubernetes/kafka-5-service.yaml +++ b/kubernetes/kafka-5-service.yaml @@ -1,14 +1,10 @@ apiVersion: v1 kind: Service metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: kafka-5 + kafka: kafka-5 name: kafka-5 - namespace: default + namespace: kafka spec: ports: - name: "9085" @@ -18,6 +14,6 @@ spec: port: 7005 targetPort: 7000 selector: - io.kompose.service: kafka-5 + kafka: kafka-5 status: loadBalancer: {} diff --git a/kubernetes/zookeeper-deployment.yaml b/kubernetes/zookeeper-deployment.yaml index 576d1af..fab6b32 100644 --- a/kubernetes/zookeeper-deployment.yaml +++ b/kubernetes/zookeeper-deployment.yaml @@ -1,30 +1,21 @@ apiVersion: apps/v1 kind: Deployment metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: zookeeper + kafka: zookeeper name: zookeeper - namespace: default + namespace: kafka spec: replicas: 1 selector: matchLabels: - io.kompose.service: zookeeper + kafka: zookeeper strategy: type: Recreate template: metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.network/kubernetes-default: "true" - io.kompose.service: zookeeper + kafka: zookeeper spec: containers: - env: diff --git a/kubernetes/zookeeper-persistentvolumeclaim.yaml b/kubernetes/zookeeper-persistentvolumeclaim.yaml index dd4a4a1..9ce9824 100644 --- a/kubernetes/zookeeper-persistentvolumeclaim.yaml +++ b/kubernetes/zookeeper-persistentvolumeclaim.yaml @@ -1,11 +1,10 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - creationTimestamp: null labels: - io.kompose.service: zookeeper + kafka: zookeeper name: zookeeper - namespace: default + namespace: kafka spec: accessModes: - ReadWriteOnce diff --git a/kubernetes/zookeeper-service.yaml b/kubernetes/zookeeper-service.yaml index 658c0ee..abe1d20 100644 --- a/kubernetes/zookeeper-service.yaml +++ b/kubernetes/zookeeper-service.yaml @@ -1,14 +1,10 @@ apiVersion: v1 kind: Service metadata: - annotations: - kompose.cmd: kompose convert - kompose.version: 1.30.0 (9d8dcb518) - creationTimestamp: null labels: - io.kompose.service: zookeeper + kafka: zookeeper name: zookeeper - namespace: default + namespace: kafka spec: ports: - name: "2181" @@ -18,6 +14,6 @@ spec: port: 7000 targetPort: 7070 selector: - io.kompose.service: zookeeper + kafka: zookeeper status: loadBalancer: {} -- 2.20.1