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