Converted `docker-compose.yml` to `*.yaml` with kompose
[demos/kafka/monitoring] / kubernetes / kafka-5-deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   annotations:
5     kompose.cmd: kompose convert
6     kompose.version: 1.30.0 (9d8dcb518)
7   creationTimestamp: null
8   labels:
9     io.kompose.service: kafka-5
10   name: kafka-5
11   namespace: default
12 spec:
13   replicas: 1
14   selector:
15     matchLabels:
16       io.kompose.service: kafka-5
17   strategy:
18     type: Recreate
19   template:
20     metadata:
21       annotations:
22         kompose.cmd: kompose convert
23         kompose.version: 1.30.0 (9d8dcb518)
24       creationTimestamp: null
25       labels:
26         io.kompose.network/kubernetes-default: "true"
27         io.kompose.service: kafka-5
28     spec:
29       containers:
30         - env:
31             - name: ALLOW_PLAINTEXT_LISTENER
32               value: "yes"
33             - name: KAFKA_BROKER_ID
34               value: "5"
35             - name: KAFKA_CFG_ADVERTISED_LISTENERS
36               value: BROKER://kafka-5:9092, LOCALHOST://localhost:9085
37             - name: KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE
38               value: "false"
39             - name: KAFKA_CFG_INTER_BROKER_LISTENER_NAME
40               value: BROKER
41             - name: KAFKA_CFG_LISTENERS
42               value: BROKER://:9092, LOCALHOST://:9085
43             - name: KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP
44               value: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
45             - name: KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR
46               value: "3"
47             - name: KAFKA_CFG_ZOOKEEPER_CONNECT
48               value: zookeeper:2181
49             - name: KAFKA_ENABLE_KRAFT
50               value: "false"
51             - name: KAFKA_OPTS
52               value: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7000 -Dcom.sun.management.jmxremote.authenticate=false
53           image: bitnami/kafka:3.4.0
54           name: kafka-5
55           ports:
56             - containerPort: 9085
57               hostPort: 9085
58               protocol: TCP
59             - containerPort: 7000
60               hostPort: 7005
61               protocol: TCP
62           resources: {}
63           volumeMounts:
64             - mountPath: /bitnami/kafka
65               name: kafka-5
66       restartPolicy: Always
67       volumes:
68         - name: kafka-5
69           persistentVolumeClaim:
70             claimName: kafka-5
71 status: {}