Skip to content

Instantly share code, notes, and snippets.

@driedtoast
Created September 28, 2021 23:45
Show Gist options
  • Save driedtoast/01c2f96c55790068668296f51b590bf7 to your computer and use it in GitHub Desktop.
Save driedtoast/01c2f96c55790068668296f51b590bf7 to your computer and use it in GitHub Desktop.
kafka-podman

Setup podman

brew install podman
podman machine init
pdoman machine start

Create cluster

podman network create my_kafka
podman run --network=my_kafka --rm --detach --name zookeeper -e ZOOKEEPER_CLIENT_PORT=2181 docker.io/confluentinc/cp-zookeeper:5.5.0
podman run --network=my_kafka --rm --detach --name broker \
           -p 9092:9092 \
           -e KAFKA_BROKER_ID=1 \
           -e KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 \
           -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 \
           -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 \
           docker.io/confluentinc/cp-kafka:5.5.0```
@paxel
Copy link

paxel commented Dec 4, 2023

pdoman machine start. typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment