-
Issue submitter TODO list
Is your proposal related to a problem?Confluent has a confluent-local image optimized for use in Kraft Mode https://docs.confluent.io/platform/current/installation/docker/image-reference.html I've had a hard time getting everything working and still cannot get my rest proxy that is built in working once I set all the variables the KafkaUI docs specify to add. It also seems like a lot of extra env vars than I should need in the Describe the feature you're interested inMinimal single instance kafka docker compose example with Describe alternatives you've consideredThis is what I'm trying, but of those # Based on the following w/o schema-registry and kafka-connect
# - https://github.com/kafbat/kafka-ui/blob/main/documentation/compose/kafbat-ui.yaml
# - https://ui.docs.kafbat.io/configuration/complex-configuration-examples/kraft-mode-+-multiple-brokers
services:
# Run Kafka without zookeeper (Kraft Mode)
kafka0:
hostname: kafka0
container_name: kafka0
image: confluentinc/confluent-local:latest
ports:
- "9092:9092"
- "8082:8082"
environment:
KAFKA_BROKER_ID: 1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka0:29092,PLAINTEXT_HOST://localhost:9092'
KAFKA_PROCESS_ROLES: 'broker,controller'
KAFKA_NODE_ID: 1
KAFKA_CONTROLLER_QUORUM_VOTERS: '1@kafka0:29093'
KAFKA_LISTENERS: 'PLAINTEXT://kafka0:29092,CONTROLLER://kafka0:29093,PLAINTEXT_HOST://0.0.0.0:9092'
KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
KAFKA_LOG_DIRS: '/tmp/kraft-combined-logs'
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'
# Kafka UI
kafbat-ui:
container_name: kafbat-ui
image: ghcr.io/kafbat/kafka-ui:latest
ports:
- 8080:8080
depends_on:
- kafka0
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka0:29092
kafka-init-topics:
# Not using confluent-local image because it doesn't have all the shell commands installed
image: confluentinc/cp-kafka:latest
depends_on:
- kafka0
volumes:
- ./scripts/create-topics.sh:/create-topics.sh
command: "/create-topics.sh" Version you're running4cf17a0 v1.1.0 Additional contextWhen I make a rest call
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi scprek! 👋 Welcome, and thank you for opening your first issue in the repo! Please wait for triaging by our maintainers. As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues. If you plan to raise a PR for this issue, please take a look at our contributing guide. |
Beta Was this translation helpful? Give feedback.
-
We have a bunch of compose files (https://github.com/kafbat/kafka-ui/blob/main/documentation/compose/DOCKER_COMPOSE.md) as an example and all of them are in kraft mode, except for
This is the first call admin client makes, which means the cluster is unreachable. Given the statements above and our limited resources, I can't assist here with fixing your setup as it's out of the scope of our app. I'll convert this into a discussion. |
Beta Was this translation helpful? Give feedback.
Working example submitted to repo in #821