Converted `docker-compose.yml` to `*.yaml` with kompose
[demos/kafka/monitoring] / kubernetes / kafka-4-deployment.yaml
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: {}