Converted `docker-compose.yml` to `*.yaml` with kompose
authorKai Moritz <kai@juplo.de>
Tue, 26 Sep 2023 20:50:25 +0000 (22:50 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 26 Sep 2023 20:50:31 +0000 (22:50 +0200)
19 files changed:
kubernetes/docker-compose.yml [deleted file]
kubernetes/kafka-1-deployment.yaml [new file with mode: 0644]
kubernetes/kafka-1-persistentvolumeclaim.yaml [new file with mode: 0644]
kubernetes/kafka-1-service.yaml [new file with mode: 0644]
kubernetes/kafka-2-deployment.yaml [new file with mode: 0644]
kubernetes/kafka-2-persistentvolumeclaim.yaml [new file with mode: 0644]
kubernetes/kafka-2-service.yaml [new file with mode: 0644]
kubernetes/kafka-3-deployment.yaml [new file with mode: 0644]
kubernetes/kafka-3-persistentvolumeclaim.yaml [new file with mode: 0644]
kubernetes/kafka-3-service.yaml [new file with mode: 0644]
kubernetes/kafka-4-deployment.yaml [new file with mode: 0644]
kubernetes/kafka-4-persistentvolumeclaim.yaml [new file with mode: 0644]
kubernetes/kafka-4-service.yaml [new file with mode: 0644]
kubernetes/kafka-5-deployment.yaml [new file with mode: 0644]
kubernetes/kafka-5-persistentvolumeclaim.yaml [new file with mode: 0644]
kubernetes/kafka-5-service.yaml [new file with mode: 0644]
kubernetes/zookeeper-deployment.yaml [new file with mode: 0644]
kubernetes/zookeeper-persistentvolumeclaim.yaml [new file with mode: 0644]
kubernetes/zookeeper-service.yaml [new file with mode: 0644]

diff --git a/kubernetes/docker-compose.yml b/kubernetes/docker-compose.yml
deleted file mode 100644 (file)
index 13e2dc8..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-version: '3.2'
-
-services:
-
-  zookeeper:
-    build: bitnami/zookeeper:3.9.0
-    environment:
-      ALLOW_ANONYMOUS_LOGIN: 'yes'
-      ZOO_ENABLE_PROMETHEUS_METRICS: 'yes'
-    volumes:
-      - zookeeper:/bitnami/zookeeper
-    ports:
-      - 2181:2181
-      - 7000:7070
-
-  kafka-1:
-    image: bitnami/kafka:3.4.0
-    environment:
-      KAFKA_ENABLE_KRAFT: 'false'
-      KAFKA_OPTS:
-        -Dcom.sun.management.jmxremote=true
-        -Dcom.sun.management.jmxremote.port=7000
-        -Dcom.sun.management.jmxremote.authenticate=false
-      KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
-      KAFKA_CFG_LISTENERS: BROKER://:9092, LOCALHOST://:9081
-      KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
-      KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-1:9092, LOCALHOST://localhost:9081
-      KAFKA_BROKER_ID: 1
-      ALLOW_PLAINTEXT_LISTENER: 'yes'
-      KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
-      KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
-      KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
-    volumes:
-      - kafka-1:/bitnami/kafka
-    ports:
-      - 9081:9081
-      - 7001:7000
-    depends_on:
-      - zookeeper
-
-  kafka-2:
-    image: bitnami/kafka:3.4.0
-    environment:
-      KAFKA_ENABLE_KRAFT: 'false'
-      KAFKA_OPTS:
-        -Dcom.sun.management.jmxremote=true
-        -Dcom.sun.management.jmxremote.port=7000
-        -Dcom.sun.management.jmxremote.authenticate=false
-      KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
-      KAFKA_CFG_LISTENERS: BROKER://:9092, LOCALHOST://:9082
-      KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
-      KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-2:9092, LOCALHOST://localhost:9082
-      KAFKA_BROKER_ID: 2
-      ALLOW_PLAINTEXT_LISTENER: 'yes'
-      KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
-      KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
-      KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
-    volumes:
-      - kafka-2:/bitnami/kafka
-    ports:
-      - 9092:9082
-      - 9082:9082
-      - 7002:7000
-    networks:
-      default:
-        aliases:
-          - kafka
-    depends_on:
-      - zookeeper
-
-  kafka-3:
-    image: bitnami/kafka:3.4.0
-    environment:
-      KAFKA_ENABLE_KRAFT: 'false'
-      KAFKA_OPTS:
-        -Dcom.sun.management.jmxremote=true
-        -Dcom.sun.management.jmxremote.port=7000
-        -Dcom.sun.management.jmxremote.authenticate=false
-      KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
-      KAFKA_CFG_LISTENERS: BROKER://:9092, LOCALHOST://:9083
-      KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
-      KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-3:9092, LOCALHOST://localhost:9083
-      KAFKA_BROKER_ID: 3
-      ALLOW_PLAINTEXT_LISTENER: 'yes'
-      KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
-      KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
-      KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
-    volumes:
-      - kafka-3:/bitnami/kafka
-    ports:
-      - 9083:9083
-      - 7003:7000
-    depends_on:
-      - zookeeper
-
-  kafka-4:
-    image: bitnami/kafka:3.4.0
-    environment:
-      KAFKA_ENABLE_KRAFT: 'false'
-      KAFKA_OPTS:
-        -Dcom.sun.management.jmxremote=true
-        -Dcom.sun.management.jmxremote.port=7000
-        -Dcom.sun.management.jmxremote.authenticate=false
-      KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
-      KAFKA_CFG_LISTENERS: BROKER://:9092, LOCALHOST://:9084
-      KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
-      KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-4:9092, LOCALHOST://localhost:9084
-      KAFKA_BROKER_ID: 4
-      ALLOW_PLAINTEXT_LISTENER: 'yes'
-      KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
-      KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
-      KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
-    volumes:
-      - kafka-4:/bitnami/kafka
-    ports:
-      - 9084:9084
-      - 7004:7000
-    depends_on:
-      - zookeeper
-
-  kafka-5:
-    image: bitnami/kafka:3.4.0
-    environment:
-      KAFKA_ENABLE_KRAFT: 'false'
-      KAFKA_OPTS:
-        -Dcom.sun.management.jmxremote=true
-        -Dcom.sun.management.jmxremote.port=7000
-        -Dcom.sun.management.jmxremote.authenticate=false
-      KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
-      KAFKA_CFG_LISTENERS: BROKER://:9092, LOCALHOST://:9085
-      KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
-      KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-5:9092, LOCALHOST://localhost:9085
-      KAFKA_BROKER_ID: 5
-      ALLOW_PLAINTEXT_LISTENER: 'yes'
-      KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
-      KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
-      KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
-    volumes:
-      - kafka-5:/bitnami/kafka
-    ports:
-      - 9085:9085
-      - 7005:7000
-    depends_on:
-      - zookeeper
-
-volumes:
-
-  zookeeper:
-  kafka-1:
-  kafka-2:
-  kafka-3:
-  kafka-4:
-  kafka-5:
-  grafana:
diff --git a/kubernetes/kafka-1-deployment.yaml b/kubernetes/kafka-1-deployment.yaml
new file mode 100644 (file)
index 0000000..7807b87
--- /dev/null
@@ -0,0 +1,71 @@
+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
+  name: kafka-1
+  namespace: default
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      io.kompose.service: 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
+    spec:
+      containers:
+        - env:
+            - name: ALLOW_PLAINTEXT_LISTENER
+              value: "yes"
+            - name: KAFKA_BROKER_ID
+              value: "1"
+            - name: KAFKA_CFG_ADVERTISED_LISTENERS
+              value: BROKER://kafka-1:9092, LOCALHOST://localhost:9081
+            - name: KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE
+              value: "false"
+            - name: KAFKA_CFG_INTER_BROKER_LISTENER_NAME
+              value: BROKER
+            - name: KAFKA_CFG_LISTENERS
+              value: BROKER://:9092, LOCALHOST://:9081
+            - name: KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP
+              value: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
+            - name: KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR
+              value: "3"
+            - name: KAFKA_CFG_ZOOKEEPER_CONNECT
+              value: zookeeper:2181
+            - name: KAFKA_ENABLE_KRAFT
+              value: "false"
+            - name: KAFKA_OPTS
+              value: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7000 -Dcom.sun.management.jmxremote.authenticate=false
+          image: bitnami/kafka:3.4.0
+          name: kafka-1
+          ports:
+            - containerPort: 9081
+              hostPort: 9081
+              protocol: TCP
+            - containerPort: 7000
+              hostPort: 7001
+              protocol: TCP
+          resources: {}
+          volumeMounts:
+            - mountPath: /bitnami/kafka
+              name: kafka-1
+      restartPolicy: Always
+      volumes:
+        - name: kafka-1
+          persistentVolumeClaim:
+            claimName: kafka-1
+status: {}
diff --git a/kubernetes/kafka-1-persistentvolumeclaim.yaml b/kubernetes/kafka-1-persistentvolumeclaim.yaml
new file mode 100644 (file)
index 0000000..8bdc9c2
--- /dev/null
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-1
+  name: kafka-1
+  namespace: default
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 100Mi
+status: {}
diff --git a/kubernetes/kafka-1-service.yaml b/kubernetes/kafka-1-service.yaml
new file mode 100644 (file)
index 0000000..bff5c5d
--- /dev/null
@@ -0,0 +1,23 @@
+apiVersion: v1
+kind: Service
+metadata:
+  annotations:
+    kompose.cmd: kompose convert
+    kompose.version: 1.30.0 (9d8dcb518)
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-1
+  name: kafka-1
+  namespace: default
+spec:
+  ports:
+    - name: "9081"
+      port: 9081
+      targetPort: 9081
+    - name: "7001"
+      port: 7001
+      targetPort: 7000
+  selector:
+    io.kompose.service: kafka-1
+status:
+  loadBalancer: {}
diff --git a/kubernetes/kafka-2-deployment.yaml b/kubernetes/kafka-2-deployment.yaml
new file mode 100644 (file)
index 0000000..d5ab983
--- /dev/null
@@ -0,0 +1,71 @@
+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
+  name: kafka-2
+  namespace: default
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      io.kompose.service: 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
+    spec:
+      containers:
+        - env:
+            - name: ALLOW_PLAINTEXT_LISTENER
+              value: "yes"
+            - name: KAFKA_BROKER_ID
+              value: "2"
+            - name: KAFKA_CFG_ADVERTISED_LISTENERS
+              value: BROKER://kafka-2:9092, LOCALHOST://localhost:9082
+            - name: KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE
+              value: "false"
+            - name: KAFKA_CFG_INTER_BROKER_LISTENER_NAME
+              value: BROKER
+            - name: KAFKA_CFG_LISTENERS
+              value: BROKER://:9092, LOCALHOST://:9082
+            - name: KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP
+              value: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
+            - name: KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR
+              value: "3"
+            - name: KAFKA_CFG_ZOOKEEPER_CONNECT
+              value: zookeeper:2181
+            - name: KAFKA_ENABLE_KRAFT
+              value: "false"
+            - name: KAFKA_OPTS
+              value: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7000 -Dcom.sun.management.jmxremote.authenticate=false
+          image: bitnami/kafka:3.4.0
+          name: kafka-2
+          ports:
+            - containerPort: 9082
+              hostPort: 9092
+              protocol: TCP
+            - containerPort: 7000
+              hostPort: 7002
+              protocol: TCP
+          resources: {}
+          volumeMounts:
+            - mountPath: /bitnami/kafka
+              name: kafka-2
+      restartPolicy: Always
+      volumes:
+        - name: kafka-2
+          persistentVolumeClaim:
+            claimName: kafka-2
+status: {}
diff --git a/kubernetes/kafka-2-persistentvolumeclaim.yaml b/kubernetes/kafka-2-persistentvolumeclaim.yaml
new file mode 100644 (file)
index 0000000..a1a8b2e
--- /dev/null
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-2
+  name: kafka-2
+  namespace: default
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 100Mi
+status: {}
diff --git a/kubernetes/kafka-2-service.yaml b/kubernetes/kafka-2-service.yaml
new file mode 100644 (file)
index 0000000..d5b7eff
--- /dev/null
@@ -0,0 +1,26 @@
+apiVersion: v1
+kind: Service
+metadata:
+  annotations:
+    kompose.cmd: kompose convert
+    kompose.version: 1.30.0 (9d8dcb518)
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-2
+  name: kafka-2
+  namespace: default
+spec:
+  ports:
+    - name: "9092"
+      port: 9092
+      targetPort: 9082
+    - name: "9082"
+      port: 9082
+      targetPort: 9082
+    - name: "7002"
+      port: 7002
+      targetPort: 7000
+  selector:
+    io.kompose.service: kafka-2
+status:
+  loadBalancer: {}
diff --git a/kubernetes/kafka-3-deployment.yaml b/kubernetes/kafka-3-deployment.yaml
new file mode 100644 (file)
index 0000000..5bd8976
--- /dev/null
@@ -0,0 +1,71 @@
+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
+  name: kafka-3
+  namespace: default
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      io.kompose.service: 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
+    spec:
+      containers:
+        - env:
+            - name: ALLOW_PLAINTEXT_LISTENER
+              value: "yes"
+            - name: KAFKA_BROKER_ID
+              value: "3"
+            - name: KAFKA_CFG_ADVERTISED_LISTENERS
+              value: BROKER://kafka-3:9092, LOCALHOST://localhost:9083
+            - name: KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE
+              value: "false"
+            - name: KAFKA_CFG_INTER_BROKER_LISTENER_NAME
+              value: BROKER
+            - name: KAFKA_CFG_LISTENERS
+              value: BROKER://:9092, LOCALHOST://:9083
+            - name: KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP
+              value: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
+            - name: KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR
+              value: "3"
+            - name: KAFKA_CFG_ZOOKEEPER_CONNECT
+              value: zookeeper:2181
+            - name: KAFKA_ENABLE_KRAFT
+              value: "false"
+            - name: KAFKA_OPTS
+              value: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7000 -Dcom.sun.management.jmxremote.authenticate=false
+          image: bitnami/kafka:3.4.0
+          name: kafka-3
+          ports:
+            - containerPort: 9083
+              hostPort: 9083
+              protocol: TCP
+            - containerPort: 7000
+              hostPort: 7003
+              protocol: TCP
+          resources: {}
+          volumeMounts:
+            - mountPath: /bitnami/kafka
+              name: kafka-3
+      restartPolicy: Always
+      volumes:
+        - name: kafka-3
+          persistentVolumeClaim:
+            claimName: kafka-3
+status: {}
diff --git a/kubernetes/kafka-3-persistentvolumeclaim.yaml b/kubernetes/kafka-3-persistentvolumeclaim.yaml
new file mode 100644 (file)
index 0000000..7320c09
--- /dev/null
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-3
+  name: kafka-3
+  namespace: default
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 100Mi
+status: {}
diff --git a/kubernetes/kafka-3-service.yaml b/kubernetes/kafka-3-service.yaml
new file mode 100644 (file)
index 0000000..3a5ca44
--- /dev/null
@@ -0,0 +1,23 @@
+apiVersion: v1
+kind: Service
+metadata:
+  annotations:
+    kompose.cmd: kompose convert
+    kompose.version: 1.30.0 (9d8dcb518)
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-3
+  name: kafka-3
+  namespace: default
+spec:
+  ports:
+    - name: "9083"
+      port: 9083
+      targetPort: 9083
+    - name: "7003"
+      port: 7003
+      targetPort: 7000
+  selector:
+    io.kompose.service: kafka-3
+status:
+  loadBalancer: {}
diff --git a/kubernetes/kafka-4-deployment.yaml b/kubernetes/kafka-4-deployment.yaml
new file mode 100644 (file)
index 0000000..cf1fa3b
--- /dev/null
@@ -0,0 +1,71 @@
+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
+  name: kafka-4
+  namespace: default
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      io.kompose.service: 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
+    spec:
+      containers:
+        - env:
+            - name: ALLOW_PLAINTEXT_LISTENER
+              value: "yes"
+            - name: KAFKA_BROKER_ID
+              value: "4"
+            - name: KAFKA_CFG_ADVERTISED_LISTENERS
+              value: BROKER://kafka-4:9092, LOCALHOST://localhost:9084
+            - name: KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE
+              value: "false"
+            - name: KAFKA_CFG_INTER_BROKER_LISTENER_NAME
+              value: BROKER
+            - name: KAFKA_CFG_LISTENERS
+              value: BROKER://:9092, LOCALHOST://:9084
+            - name: KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP
+              value: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
+            - name: KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR
+              value: "3"
+            - name: KAFKA_CFG_ZOOKEEPER_CONNECT
+              value: zookeeper:2181
+            - name: KAFKA_ENABLE_KRAFT
+              value: "false"
+            - name: KAFKA_OPTS
+              value: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7000 -Dcom.sun.management.jmxremote.authenticate=false
+          image: bitnami/kafka:3.4.0
+          name: kafka-4
+          ports:
+            - containerPort: 9084
+              hostPort: 9084
+              protocol: TCP
+            - containerPort: 7000
+              hostPort: 7004
+              protocol: TCP
+          resources: {}
+          volumeMounts:
+            - mountPath: /bitnami/kafka
+              name: kafka-4
+      restartPolicy: Always
+      volumes:
+        - name: kafka-4
+          persistentVolumeClaim:
+            claimName: kafka-4
+status: {}
diff --git a/kubernetes/kafka-4-persistentvolumeclaim.yaml b/kubernetes/kafka-4-persistentvolumeclaim.yaml
new file mode 100644 (file)
index 0000000..a346f0d
--- /dev/null
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-4
+  name: kafka-4
+  namespace: default
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 100Mi
+status: {}
diff --git a/kubernetes/kafka-4-service.yaml b/kubernetes/kafka-4-service.yaml
new file mode 100644 (file)
index 0000000..91f8263
--- /dev/null
@@ -0,0 +1,23 @@
+apiVersion: v1
+kind: Service
+metadata:
+  annotations:
+    kompose.cmd: kompose convert
+    kompose.version: 1.30.0 (9d8dcb518)
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-4
+  name: kafka-4
+  namespace: default
+spec:
+  ports:
+    - name: "9084"
+      port: 9084
+      targetPort: 9084
+    - name: "7004"
+      port: 7004
+      targetPort: 7000
+  selector:
+    io.kompose.service: kafka-4
+status:
+  loadBalancer: {}
diff --git a/kubernetes/kafka-5-deployment.yaml b/kubernetes/kafka-5-deployment.yaml
new file mode 100644 (file)
index 0000000..de5915c
--- /dev/null
@@ -0,0 +1,71 @@
+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
+  name: kafka-5
+  namespace: default
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      io.kompose.service: 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
+    spec:
+      containers:
+        - env:
+            - name: ALLOW_PLAINTEXT_LISTENER
+              value: "yes"
+            - name: KAFKA_BROKER_ID
+              value: "5"
+            - name: KAFKA_CFG_ADVERTISED_LISTENERS
+              value: BROKER://kafka-5:9092, LOCALHOST://localhost:9085
+            - name: KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE
+              value: "false"
+            - name: KAFKA_CFG_INTER_BROKER_LISTENER_NAME
+              value: BROKER
+            - name: KAFKA_CFG_LISTENERS
+              value: BROKER://:9092, LOCALHOST://:9085
+            - name: KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP
+              value: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
+            - name: KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR
+              value: "3"
+            - name: KAFKA_CFG_ZOOKEEPER_CONNECT
+              value: zookeeper:2181
+            - name: KAFKA_ENABLE_KRAFT
+              value: "false"
+            - name: KAFKA_OPTS
+              value: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7000 -Dcom.sun.management.jmxremote.authenticate=false
+          image: bitnami/kafka:3.4.0
+          name: kafka-5
+          ports:
+            - containerPort: 9085
+              hostPort: 9085
+              protocol: TCP
+            - containerPort: 7000
+              hostPort: 7005
+              protocol: TCP
+          resources: {}
+          volumeMounts:
+            - mountPath: /bitnami/kafka
+              name: kafka-5
+      restartPolicy: Always
+      volumes:
+        - name: kafka-5
+          persistentVolumeClaim:
+            claimName: kafka-5
+status: {}
diff --git a/kubernetes/kafka-5-persistentvolumeclaim.yaml b/kubernetes/kafka-5-persistentvolumeclaim.yaml
new file mode 100644 (file)
index 0000000..12ef9bd
--- /dev/null
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-5
+  name: kafka-5
+  namespace: default
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 100Mi
+status: {}
diff --git a/kubernetes/kafka-5-service.yaml b/kubernetes/kafka-5-service.yaml
new file mode 100644 (file)
index 0000000..975ac4e
--- /dev/null
@@ -0,0 +1,23 @@
+apiVersion: v1
+kind: Service
+metadata:
+  annotations:
+    kompose.cmd: kompose convert
+    kompose.version: 1.30.0 (9d8dcb518)
+  creationTimestamp: null
+  labels:
+    io.kompose.service: kafka-5
+  name: kafka-5
+  namespace: default
+spec:
+  ports:
+    - name: "9085"
+      port: 9085
+      targetPort: 9085
+    - name: "7005"
+      port: 7005
+      targetPort: 7000
+  selector:
+    io.kompose.service: kafka-5
+status:
+  loadBalancer: {}
diff --git a/kubernetes/zookeeper-deployment.yaml b/kubernetes/zookeeper-deployment.yaml
new file mode 100644 (file)
index 0000000..576d1af
--- /dev/null
@@ -0,0 +1,53 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  annotations:
+    kompose.cmd: kompose convert
+    kompose.version: 1.30.0 (9d8dcb518)
+  creationTimestamp: null
+  labels:
+    io.kompose.service: zookeeper
+  name: zookeeper
+  namespace: default
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      io.kompose.service: 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
+    spec:
+      containers:
+        - env:
+            - name: ALLOW_ANONYMOUS_LOGIN
+              value: "yes"
+            - name: ZOO_ENABLE_PROMETHEUS_METRICS
+              value: "yes"
+          image: zookeeper
+          name: zookeeper
+          ports:
+            - containerPort: 2181
+              hostPort: 2181
+              protocol: TCP
+            - containerPort: 7070
+              hostPort: 7000
+              protocol: TCP
+          resources: {}
+          volumeMounts:
+            - mountPath: /bitnami/zookeeper
+              name: zookeeper
+      restartPolicy: Always
+      volumes:
+        - name: zookeeper
+          persistentVolumeClaim:
+            claimName: zookeeper
+status: {}
diff --git a/kubernetes/zookeeper-persistentvolumeclaim.yaml b/kubernetes/zookeeper-persistentvolumeclaim.yaml
new file mode 100644 (file)
index 0000000..dd4a4a1
--- /dev/null
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  creationTimestamp: null
+  labels:
+    io.kompose.service: zookeeper
+  name: zookeeper
+  namespace: default
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 100Mi
+status: {}
diff --git a/kubernetes/zookeeper-service.yaml b/kubernetes/zookeeper-service.yaml
new file mode 100644 (file)
index 0000000..658c0ee
--- /dev/null
@@ -0,0 +1,23 @@
+apiVersion: v1
+kind: Service
+metadata:
+  annotations:
+    kompose.cmd: kompose convert
+    kompose.version: 1.30.0 (9d8dcb518)
+  creationTimestamp: null
+  labels:
+    io.kompose.service: zookeeper
+  name: zookeeper
+  namespace: default
+spec:
+  ports:
+    - name: "2181"
+      port: 2181
+      targetPort: 2181
+    - name: "7000"
+      port: 7000
+      targetPort: 7070
+  selector:
+    io.kompose.service: zookeeper
+status:
+  loadBalancer: {}