conduktor / kafka-stack-docker-compose

docker compose files to create a fully working kafka stack
Apache License 2.0
3.24k stars 1.25k forks source link

How can I use this to deploy Kafka with Kubernetes #98

Closed Sourabh25 closed 2 years ago

Sourabh25 commented 2 years ago

I am trying to deploy Kafka with same configuration with kubernetes but getting the below error:

Error while fetching metadata with correlation id 5581 : {toiicName=LEADER_NOT_AVAILABLE} ","traceID":"","spanID":"","trace_id":"","span_id":"","dd.trace_id":"","dd.span_id":"","pid": "org.springframework.kafka.KafkaListenerEndpointContainer#10-0-C-1","logger.thread_name":"[tainer#10-0-C-1]","loggepr.name":"org.apache.kafka.clients.NetworkClient"}

Could you please tell me what I am missing.

Please find below my deployment yaml file

kind: Deployment apiVersion: apps/v1 metadata: name: kafka-broker0 spec: replicas: 2 selector: matchLabels: app: kafka id: "0" template: metadata: labels: app: kafka id: "0" spec: containers:

apiVersion: v1 kind: Service metadata: name: kafka-service labels: name: kafka spec: ports:

simplesteph commented 2 years ago

This is not for deploying to Kubernetes, this is for local deployment only. We can't help you deploy Kafka to Kubernetes here, sorry..