X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=kubernetes%2Fkafka-5-deployment.yaml;fp=kubernetes%2Fkafka-5-deployment.yaml;h=de5915c86c4d7986d0fd941cc8467062f523f4cc;hb=b550ae2d1b75a953a9446e2c571d9ecc658faffa;hp=0000000000000000000000000000000000000000;hpb=27eb13ca94d63b44f18472263d7c3de069302c77;p=demos%2Fkafka%2Fmonitoring diff --git a/kubernetes/kafka-5-deployment.yaml b/kubernetes/kafka-5-deployment.yaml new file mode 100644 index 0000000..de5915c --- /dev/null +++ b/kubernetes/kafka-5-deployment.yaml @@ -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: {}